|
MoveFile | ||
MoveFile SourceFilename$, OuputFilename$ | ||
Parameters: SourceFilename$ = The Filename of the file you wish to move OuputFilename$ = The Filename/Path that you wish to move the source file to. |
||
Returns: NONE | ||
MoveFile will move a file. FACTS: * Before you use MoveFile, always make sure that source filename exists. If you try and move a file that doesn't exist, PlayBASIC will return a run time error. * MoveFile can also be used to rename a file. Simply move the file to the same location with a new name. (See GetFileName$(), GetFolderName$() for how to split folder/filenames from strings) Mini Tutorial: This example will create a blank file on the C: Drive called "TestFile.txt" , it then copies this file and displays the info about it. Both files are then removed before the program ends.
This example would output.
|
Related Info: | CopyFile | DeleteFile : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |