Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with filecopy

Status
Not open for further replies.

Retar

Technical User
Feb 28, 2001
4
US
I tried the folowing code in my form but it doesn't seem to work...what's wrong wit it ?


filecopy("c:\test.txt","c:\windows\system")

As you can see i'm trying to copy test.text to the c:\windows\system directory but it give me an error asking for a equal sign somewhere ???
 

Try this


FileCopy "c:\test.txt", "c:\windows\system\text.txt"
 
Calling a function with parentesis (ie: SomeFunction(Argument) ) denotes that you will use the value the function return, and hence you must assign the value to a variable or use it in a condition.
Calling it without (ie: SomeFunction Argument ) denotes that you won't be handling the return value of the function.

Understand? :)

-Mats
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top