Batch Script to find out if a folder exists
Posted on 2008-10-28
I am trying to make a simple batch script for windows to find out if a user's folder exists on share on a server. If the folder does not exist, I want it to create one with the user's username. Here is what I have so far.
if not exist \\server\\sharedfolder\%username% md \\server\sharedfolder\%username%
Basically I want to run this as a log on script so a each user can have their own folder on a server, some already have one, so that is why I need to check to see if they have one or not.