MSFN Forum: Batch File.... - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch File.... Rate Topic: -----

#1 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 15 October 2005 - 11:59 AM

Don't know if this is the correct section.

Can someone help me create a batch file that will do the following.

Create a batch file one to rename .dll to .old, the other one to rename .old to .dll

Thank you in advance.

This post has been edited by Aveedesk: 15 October 2005 - 11:59 AM



#2 User is offline   ripken204 

  • The Hardware Guy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,311
  • Joined: 23-December 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 October 2005 - 12:21 PM

have u ever played around with autoit3? if not then google it and give it a try.

there is a nice detailed help guide with it

#3 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 15 October 2005 - 12:31 PM

Thank you Rip. On autoit3 site now.

#4 User is offline   ripken204 

  • The Hardware Guy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,311
  • Joined: 23-December 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 October 2005 - 12:37 PM

once you get to learn it, you'll love it. so easy to do stuff. just have it

1.move file.dll to file.dll.bak
2.move file.old to file.dll
3.move file.dll.bak to file.old

#5 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 15 October 2005 - 12:59 PM

View Postripken204, on Oct 15 2005, 12:37 PM, said:

once you get to learn it, you'll love it. so easy to do stuff. just have it

1.move file.dll to file.dll.bak
2.move file.old to file.dll
3.move file.dll.bak to file.old



I'm sorry, are talking about the autoit3 software?

Thanks.

#6 User is offline   ripken204 

  • The Hardware Guy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,311
  • Joined: 23-December 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 October 2005 - 01:22 PM

yes i am
look in the help file for au3 and search for the move command

#7 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 15 October 2005 - 01:31 PM

View Postripken204, on Oct 15 2005, 01:22 PM, said:

yes i am
look in the help file for au3 and search for the move command


Thank you................

#8 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 15 October 2005 - 01:46 PM

ripken204:

I must be blind, can't find the move command.

#9 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 15 October 2005 - 02:04 PM

don't need autoit to do this.. althought autoit is a very useful tool.

in your batchfile just do:
rename test.old test.dll1
rename test.dll test.old
rename test.dll1 test.dll

and replace the name of the files with the ones you got.

#10 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 15 October 2005 - 02:14 PM

View PostBi0haZarD, on Oct 15 2005, 02:04 PM, said:

don't need autoit to do this.. althought autoit is a very useful tool.

in your batchfile just do:
rename test.old test.dll1
rename test.dll test.old
rename test.dll1 test.dll

and replace the name of the files with the ones you got.


Bi0haZarD: Thank you. Much appreciated.

#11 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 15 October 2005 - 02:17 PM

np, glad i could help :)

#12 User is offline   totoymola 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 944
  • Joined: 24-September 04

Posted 16 October 2005 - 11:48 PM

For simple file renaming tasks, I personally prefer batch files, just like Bi0haZarD

:)

This post has been edited by totoymola: 16 October 2005 - 11:48 PM


#13 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 October 2005 - 02:20 PM

* topic moved

#14 User is offline   Aveedesk 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 03-September 05

Posted 17 October 2005 - 02:25 PM

Moved to........................

#15 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,020
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 17 October 2005 - 02:41 PM

You can also use a vbs script to rename files

Quote

Const OverwriteExisting = TRUE
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.MoveFile ("C:\test.old") , ("D:\test.new" ), OverwriteExisting


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy