Jump to content

Recommended Posts

Forgive me for a stupid question but I have tried and can't make it work.

I want to run FileCopy("C:\test.txt","C:\testdir")

and if this fails I want the script to stop and exit.


if you check the manual for the function filecopy note the Return Value section

Return Value

Success: Returns 1.

Failure: Returns 0.

so this would work

if FileCopy("C:\test.txt","C:\testdir") = 0 then exit
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...