Rename a File

by Selva V Pasupathy

Description

Demonstration script that uses the FileSystemObject to rename a file. Script must be run on the local computer.

Set objFSO = CreateObject(“Scripting.FileSystemObject”)
objFSO.MoveFile “C:\FSO\ScriptLog.txt” , “C:\FSO\BackupLog.txt”

Leave a Comment

You must be logged in to post a comment.