Jump to content

Recommended Posts

Posted

Im trying to create load of folders and name them from a txt file but it instantly errors.

 

@Echo off
set basedir=d:\users
for /f "tokens=*" %%a in (values.txt) do mkdir %basedir%\%%a

 

any ideas what is wrong with it ? :)

Posted

attached screen shot :)

 

tryed that and it didnt work :(

 

named the file as a .vbs

 

the txt file has a list of names e.g

 

Joe loves

Joe bloggs

etc

etc

errorbg.JPG

Posted

Hi, script worked fine after I changed the file extension to a .bat. Just created over 350 individual folder for each student between year 7 and 9.

 

I wonder If I could have used a dsquerry rather than 1st extracting names to a txt file.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...