|
November 9, 2000 Moving Files Tips: October 2000
Yehuda Shiran, Ph.D.
|
|
To move a file from one location to another, use the move() method of the File object. Its syntax is the following:
where Here is a piece of script that will move a file from drive c to drive d:
Notice that you don't have to specify a new name for the moved file, but just the new folder where to move it to. The file will keep its original name.
People who read this tip also read these tips: Look for similar tips by subject: |