Hi,
How can I check the directory for files, if the files let say "file.eps" in the directory, then the script will copy to the new directory "A" and create a new text file in a directory "B" with a .txt instead of eps "file.txt". then ftp it to a server.
I can copy the files but I dont know how to change .eps to .txt for every files
thank you
How to rename file with a new extention
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Copying files can take up much time if files are large.
If you only want to rename the file, then use MoveFile with MF__RENAME like this:
If you only want to rename the file, then use MoveFile with MF__RENAME like this:
Code: Select all
Let>MF_RENAME=1
MoveFile>B:\file.eps,B:\file.txt
...
...
//When done renaming all files, then set MF_RENAME back to default of 0
Let>MF_RENAME=0
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!