Help with Batch file...generic code?
I noticed that there is a generic code like %windir% for all computers that takes command prompt all the way to the main drive regardless of what it is...my question is, is there a generic code for users? I want one that will go to the Documents and Settings of the person currently logged onto the computer.

















Fried Contest Launches 5/13, HQ Celebrates with Fried Day Friday
MEH! :D A Build Night at Montana Ethical Hackerspace!
Got contest ideas? Want to help HQ staff?
Large Instructables Robot head made out of driftwood, check it out!
Call for pre-made parts!
The Instructables Green Design Contest is starting on Earth Day!
My instructable made it into Popular Science!
Orbotix wants to see your hacks - you could win a Sphero!
Transformational experience for Instructables Artist-in-Residence
123D Design Vs. Rotary Tool. What is better?


Visit Our Store »
Go Pro Today »




Among them was "USERPROFILE". This had the value of my user directory.
So, to get to your documents, you would need to type in:
CD %USERPROFILE%/Documents
I hope this helps.