Jump to content

Recommended Posts

Posted

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:

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...