Sign in to follow this  
Followers 0
gamerman2360

My first .bat file!

2 posts in this topic

I just remembered how hard it was to learn a new language. It wasn't so bad tho. What it does is it takes every folder in the directory with one character as a name and makes a vertual drive(subst) for it. I hope it's ok for me to post this here, even if it isn't in AutoIt. I could make an AutoIt script that does this if it would fit the bill.

@FOR /D %%F IN (?) DO subst %%F%: "%CD%\%%F"
And to do the opposite.
@FOR /D %%F IN (?) DO subst %%F%: /D
It was harder than it looks, first I tried taking the output from Dir but that didn't work out so well.

Now I have (what it feels like) extra space to store my scripts. Hopefully this will cut down on the crud I have on my desktop. :whistle:

Share this post


Link to post
Share on other sites



very nice

just created Drive 'T'


[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0