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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does a file already exist?

Status
Not open for further replies.

epratt

Programmer
May 2, 2003
6
US
I need to check to see if a file exists and notify the user if it does before proceeding with other functions. The path and filename are stored in a variable called NewTiff. Does anyone have code that does this?
 
I would use the FileSystemObject. You can search this forum for examples of it's use.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
There are a nmber of ways of doing this. For starters investigate the Dir$ command
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top