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

Creating directories

Status
Not open for further replies.

jdahlheimer

Programmer
Mar 20, 2006
34
This is a repost I was told to put it here.

I am wondering if vb.net is the best solution for this. I would like a login script that goes out checks to see if a user has a network directory if they do then put a shortcut on their desktop for it. If they don't it needs to create the directory and assign specific permissions to the folder bascially only them and administrator can see the folder. I have tried making this with a bat file but they don't seem to be able to assign permissions to the folders. So if vb.net is a good solution does anyone have any good rescources on creating and altering directories as I have never even looked at vb before today. Thanks.
 
Assigning permission to a folder is best done using cacls.exe which you can call from a .bat and does not require using vbscript.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
You could also use xcalc.vbs from workls nicely when using scripts.
 
I first used xcalc.vbs and that worked pretty good but still needs some tweaks. Not wanting to have to use an external script file I am currently tring to get the cacls to work but have not spent a lot of time on it. Anyone know how to create shortcuts in a bat file. I have read a lot of forums that said use the shortcut.exe file but most of those were for pre xp windows and I can't find the shortcut.exe for windows xp. Thanks for you help so far.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top