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!

Permission denied creating a file

Status
Not open for further replies.

sfriday

IS-IT--Management
Feb 23, 2002
211
DE
All,

I want to check that I can create a file before I do it.

I tried

If fso.CreateTextFile(Pathfilename) = "Permission Denied" Then

however that does not work, any ideas

Thanks
Steve
 
Its OK I have resolved this,

Used Set Variable = fso.CreateTextFile(pathfilename)
checked the err.number to see if it was equal to 70.

regards
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top