How can I know the file exists in windows?

  • Thread starter Thread starter a
  • Start date Start date
A

a

thank you
How can I know the file exists in windows?



example

Is this file here in this folder or not



again

if file exists give me message box the file exists
 
thank you
How can I know the file exists in windows?

example

Is this file here in this folder or not

again

if file exists give me message box the file exists

Look into the usage of Dir() and MsgBox() functions.
 
You could try

If Len(Dir("C:\filename")) > 0 Then
msgbox("'File aready exists")
 

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