Name | CNSMenu_File_Move |
---|
Description | Moves a file to a new location and/or a new name.
|
---|
Return Type | Text |
---|
Format | CNSMenu_File_Move ( Source ; Destination ) |
---|
Required Parameters | Source The path and file name of the file you want to move.
DestinationThe path to the folder where you want the file. [You can optionally specify a file name to rename the file.]
|
---|
Examples | - Example 1
Moves the file "move.txt" from the "source" folder to the "destination" folder on Mac. CNSMenu_File_Move( "/source/move.txt" ; "/destination/" )
- Example 2
Moves the file "move.txt" from the "source" folder to the "destination" folder on Windows. CNSMenu_File_Move( "c:\source\move.txt" ; "c:\destination\ " )
- Example 3
Moves the file "move.txt" from the "source" folder to the "destination" folder and renames the file "moved.txt" on Windows. CNSMenu_File_Move( "c:\source\move.txt" ; "c:\destination\moved.txt" )
- Example 4
Moves the file "move.txt" from the "source" folder to the "destination" folder and renames the file "moved.txt" on Mac. CNSMenu_File_Move( "/source/move.txt" ; "/destination/moved.txt" )
|
---|