Product Logo

CNS Barcode

Scan and Generate Barcodes

Functions

CNSBC_File_Move

NameCNSBC_File_Move
Description

Moves a file to a new location and/or a new name.

Return TypeText
FormatCNSBC_File_Move ( Source ; Destination )
Required Parameters
Source

The path and file name of the file you want to move.

Destination

The 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.

CNSBC_File_Move( "/source/move.txt" ; "/destination/" )
Example 2

Moves the file "move.txt" from the "source" folder to the "destination" folder on Windows.

CNSBC_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.

CNSBC_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.

CNSBC_File_Move( "/source/move.txt" ; "/destination/moved.txt" )