b. fso.MoveFile("C:\BackUp\CustData.txt", "C:\Data\CustData.txt")
c. fso.FileMove("C:\Data\CustData.txt","C:\BackUp\CustData.txt")
d. fso.FileMove("C:\BackUp\CustData.txt", "C:\Data\CustData.txt")
Answer:
fso.MoveFile("C:\Data\CustData.txt","C:\BackUp\CustData.txt")
Explanation:
Given
Source = C:\Data\CustData.txt
Destination = C:\BackUp\CustData.txt
Required
Code snippet to move file between directories using VScript
First, we need to write out the syntax.
The syntax to implement this is:
fso.MoveFile(Source Path, Destination Path)
The above line of code instructs the system to move the file from its source directory to its destination.
Note that the source path and destination path must include the full directories and the file extensions
In this case, the correct code is:
fso.MoveFile("C:\Data\CustData.txt","C:\BackUp\CustData.txt")
Enter your username or email to reset your password. You will receive an email with instructions on how to reset your password. If you are experiencing problems resetting your password contact us or send us an email