kairozamorro's hangout

Blog

FileDir2Prompt and Relative Paths

kairozamorro Posted by kairozamorro at 09:12 PM on October 08, 2009

FileDir2Prompt no longer exists as its own project and so this tutorial is outdated and applies to FileDir2Prompt 1.0-1.3 (last release). For compatibility and simplicity reasons it has been merged as one utility with the release of Compatibility Sword 2.0 or later, which you can obtain here. A similar tutorial that shows how to do the same thing with Compatibility Sword can be found here.

 

Probably not the most useful thing but I'd thought I'd point it out. You can use relative paths in command prompt like ., .., or \ as a directory with FileDir2Prompt. Watch the directory open up for you in a new command window. You might even be able to use variables which is great, say in batch programs. Pretty useful when you need to do tasks that require mutliple windows. I was going to add this functionality through some additional switches in a future release but apparently Windows does it for us so yay smile

 

Quick breakdown for us that don't mess around with command prompts too often:

. = current directory

.. = parent of current directory

\ = root directory of the drive of the current directory

 

So here's what I'm thinking... wouldn't it be cool to have a way to open a new command prompt window that would be elevated from the current directory in the command window you forgot to elevate? Thanks to FileDir2Prompt and Windows playing nice this is quite easy.

 

You'll need FileDir2Prompt 1.3 or later for the following to work correctly. Drop FileDir2Prompt in your c:\windows\system32 directory. All done! Now to use...

 

filedir2prompt . /adminapp

 

Any user (including non-admin users) well be able to use it (since everyone should have at least read access to the system32 directory).

Categories: Tech, 2009 Blog Posts

Post a Comment

You must be a member to comment on this page. Sign In or Register

0 Comments