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

Conditional Open of Directory

Status
Not open for further replies.

chrisnp

Programmer
Jul 31, 2002
1
0
0
GR
I am trying to develop a script that is going to make access to a directory conditional to the user accepting a confidentiality aggreement.

The script would run an application (Word, Notepad etc.), open a file (the confidentiality document), and access to the directory would be triggered by the user closing the file.

Is there a method, to lock a directory programmatically? The documentation I have found doesn't seem to cover it.



 
This method can open applications:
set fso=CreateObject("Scripting.FileSystemObject")
fso.run("notepad.exe") 'Opens notepad
OR fso.run("word.exe") 'Opens word
Behnam2204@yahoo.com
BehnamPro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top