Jump to content
Posted 21 July 2011 - 10:52 AM
Posted 21 July 2011 - 11:11 AM
Posted 21 July 2011 - 11:17 AM
Previous Directory: cd ..\
Current Directory: cd .\
Root Directory: cd \
After some research, the home directory should be accessible with an environment variable.
As for bookmarking, I can't think of a way to do it outside of creating your own environment variables with SETX, but I wasn't able to get it working in the few minutes I spent on it.
Posted 21 July 2011 - 11:39 AM
Thanks, but that goes up a directory, but not to the last directory that I was in. For instance:
Now how would I get back to C:\Users\dotancohen\some\long\filepath
Thank you! Where did you research that, I should certainly be reading whatever other info is in there.
Thanks, that is interesting. I've also discovered pushd and popd, but I cannot get pushd to automatically use the current directory.
Posted 21 July 2011 - 11:50 AM
Looking through the reference on CD from SS64 I don't see any options to get to the previous directory, but there still may be a way to do it with variables, that's a tricky one!
I've never used these commands until you mentioned them, but I think they can help with what you're looking for, here's what I get in my tests:
What are you trying to accomplish with the current directory? You should be able to use .\ like I referenced in the CD commands.
Posted 21 July 2011 - 08:17 PM
0 members, 0 guests, 0 anonymous users