Moving one file to different folder

gstylianou

Registered User.
Local time
Today, 13:37
Joined
Dec 16, 2013
Messages
359
Good morning,

I have the test.drv file in a master folder on desktop and I would like to move it to C: \ Windows folder via script file. Please help

Thanks in advance
 
Use the vb command:
Name sOldFile as sNewFile
 
can you use FileCopy and then delete the source:

Dim sSource As String
Dim sTarget As String
sSource =Environ("userprofile") & "\Desktop\MasterFolderName\test.drv"
sTarget = Environ("windir") & "\test.drv"
VBA.FileCopy sSource, sTarget
VBA.Kill sSource
 

Users who are viewing this thread

Back
Top Bottom