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

MARKDMAC's LOGON SCRIPT 1

Status
Not open for further replies.

FISKO

Technical User
Aug 30, 2005
113
GB
Hi I have looked at and used the add Shared Folder option in Markdmac's Logon script, However is it possible to have the option to then remove this at some point using a Script? Thanks again.
 
yes. You can remove folders via script using the file system object. Here is an example.

Code:
dim objFSO, killfolder 
set objFSO = CreateObject ("Scripting.FileSystemObject") 
set killfolder = objFSO.GetFolder("c:\projects\") 
killfolder.Delete

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top