Advertisement

06.18.2008 at 05:35PM PDT, ID: 23497388
[x]
Attachment Details

vbscript to move files, rename them with unique names and with .rtf extension

Asked by cbones in Visual Basic Programming, VB Script

I am trying to put together a script that will move files from one folder into another and give them a unique name once they are moved with a .rtf extension.  
        objFSO.MoveFile objFile.Path, strDestinationFolder & NewFileName
   
If I finish the script with the line above to move the files to the destination folder and rename it, how do I rename it with a unique filename each time and make the extension .rtf?

Any advice would be appreciated.

Thank you.Start Free Trial
 
Loading Advertisement...
 
[+][-]06.18.2008 at 07:53PM PDT, ID: 21818892

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 08:37PM PDT, ID: 21819030

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.19.2008 at 04:28AM PDT, ID: 21821086

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 06:38AM PDT, ID: 21821983

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, VB Script
Sign Up Now!
Solution Provided By: sungenwang
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628