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!

How to create directories through login scripts

Status
Not open for further replies.

jcrippen

Programmer
May 22, 2001
9
0
0
US
How would you use a login script to check for a directory on the local system, and then create it if it doesn't exist. I'm not sure about the syntax with the login scripts.
 
this should work:

Echo off
if exist "c:\directory" goto end
md "c:\directory"
:end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top