Renaming file command

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Bob Hansen
Automation Wizard
Posts: 2476
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Renaming file command

Post by Bob Hansen » Tue Sep 24, 2002 3:59 am

Hello Marcus........I had been getting the mail list but have not received any since late July. I just discovered this new forum and am submitting a request I had no feedback on.
==========================

I had requested a command for FTPRenameFile which was provided and is working well. Thanks for that support.

Now, how about a normal RenameFile command? I have been using CopyFile and DeleteFile, and that does the job for small files, but I recently started processing a number of large files, and the time to do the copying is extremely long. RenameFile should be almost instantaneous. I can't believe that I have worked with Macro Scheduler for all these years without a command for RenameFile!
============================================
Suggested syntax (based on CopyFile syntax):

RenameFile>sourcefile,newfile

Renames the file(s), sourcefile, to newfile(s)

sourcefile, and newfile may be variables. Wildcards can be used.

By default if newfile already exists it will not be overwritten. It is possible to change the bahaviour of the RenameFile command to overwrite instead by setting RF_OVERWRITE to 1. The default value of RF_OVERWRITE is 0.
============================================

Thanks again for a great product, and continued personal support.

User avatar
Marcus Tettmar
Site Admin
Posts: 7337
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Sep 24, 2002 9:10 am

This has always existed. It is called MoveFile.

User avatar
Bob Hansen
Automation Wizard
Posts: 2476
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Sep 24, 2002 1:38 pm

:oops: I can't beleive this! What a dummy! :oops:

Don't you wish they were all that simple to fix? This is great, will start to use it today. Thanks for the help.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts