| View previous topic :: View next topic |
| Author |
Message |
StarThorn1
Joined: 12 Nov 2009 Posts: 6
|
Posted: Tue Nov 17, 2009 5:43 pm Post subject: How do I rename a file? |
|
|
| How do I tell the script to go into a folder and rename a file? I did a search but only found complex scripts. |
|
| Back to top |
|
 |
Carcophan
Joined: 24 Dec 2008 Posts: 1308 Location: :noitacoL
|
Posted: Tue Nov 17, 2009 5:46 pm Post subject: |
|
|
From the help file/guide...
| Quote: |
FileMove
--------------------------------------------------------------------------------
Moves or renames one or more files.
FileMove, SourcePattern, DestPattern [, Flag]
|
|
|
| Back to top |
|
 |
StarThorn1
Joined: 12 Nov 2009 Posts: 6
|
Posted: Tue Nov 17, 2009 5:53 pm Post subject: |
|
|
so would this move my file to a directory and rename is "yes.txt"
FileMove, C:\Folder1\no.txt, C:\folder2\yes.txt |
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Tue Nov 17, 2009 6:18 pm Post subject: |
|
|
| StarThorn1 wrote: | so would this move my file to a directory and rename is "yes.txt"
FileMove, C:\Folder1\no.txt, C:\folder2\yes.txt |
yes.txt |
|
| Back to top |
|
 |
None Guest
|
Posted: Wed Nov 18, 2009 12:40 am Post subject: |
|
|
You don't need to change the folder if you don't want to.
| Code: | | FileMove, C:\Folder1\no.txt, C:\folder1\yes.txt |
It will work in same folder |
|
| Back to top |
|
 |
|