Javascript FSO Move Method
File Object and Folder object returned by the GetFile and GetFolder of Javascript FileSystemObject (FSO) provide the access to the Move method that performs the action similar to cut and paste function of windows. FSO Move method moves the specified file to other specified location at client’s PC. Destination path of FSO Move method does not support wild card characters.
Syntax for FSO Move Method
fileObj.Move( destination ); // or folderObj.Move( destination )
Above syntax for FSO Move method shows that it accepts only one parameter:
destination: this parameter accepts the destination path for the specified file where it is to be moved.
Example 1
File object to execute the Move Method
<script type="text/javascript">
// initialize ActiveXObject and create an object of Scripting.FileSystemObject.
var fso = new ActiveXObject("Scripting.FileSystemObject");
// object created for file object returned by GetFile method
var fileObj = fso.GetFile("C:\\Temp\\copy_of_textfile.txt");
fileObj.Move("C:\\Temp\\myFolder\\copy_of_textfile.txt");
</script>
Example 2
Folder object to execute the Move Method
<script type="text/javascript">
// initialize ActiveXObject and create an object of Scripting.FileSystemObject.
var fso = new ActiveXObject("Scripting.FileSystemObject");
// object created for folder object returned by GetFolder method
var folderObj = fso.GetFolder("C:\\Temp\\copy_of_myFolder");
folderObj.Move("C:\\Temp\\myFolder\\copy_of_myFolder")
</script>
Continue to next tutorial: Javascript FSO Files Collection to learn how to get the collection of file at the specified location.

As i m getting permission denied while i run this .