scripting help

  • Thread starter Thread starter Andy Welcomer
  • Start date Start date
A

Andy Welcomer

Hello,

I need to script a logic routine that checks for the existance of a file. I
don't know how to check for a negative condition. I tried
IF not exhist "W:\Documents and Settings\%username%\Application
Data\Hummingbird\Connectivity\8.00\Exceed\powerhouse.xs"

Any help would be greatly appreciated.

Thanks in advance
 
Andy said:
Hello,

I need to script a logic routine that checks for the existance of a file. I
don't know how to check for a negative condition. I tried
IF not exhist "W:\Documents and Settings\%username%\Application
Data\Hummingbird\Connectivity\8.00\Exceed\powerhouse.xs"

Any help would be greatly appreciated.

Thanks in advance

Try again, but change 'exhist' to 'exist' :-)
 
Try this out

Dim fso As File
If not fso.Exists("PATH TO FILE GOES HERE W/QUOTES") Then
'enter command to copy file
Else
'do whatever you want
end if

HTH

DJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top