944,117 Members | Top Members by Rank

Ad:
Nov 19th, 2007
0

Play with the Cmd PATH

Expand Post »
I'm always dinking with my PATH variable at the command prompt. But the supplied windows "path" command is (and has always been) pathetic.

Well, after my latest episode of typing "path" and getting 6!!! lines of clutter I had had enough. So I wrote this little utility that lets me do all the things I always want to do, and a few other things thrown in.

Get it here. (Download links are at the bottom of the page.) It should work on any 32-bit version of Windows.

Available as a binary or as full source code.

It works by temporarily injecting executable code in its parent's process (which should be cmd.exe), so if you are running an anti-virus it will complain at you the first time you run it. This is the only way to non-permanently modify environment variables in another process in Win32.

Enjoy!
Last edited by Duoas; Nov 19th, 2007 at 9:02 am.
Similar Threads
Featured Poster
Reputation Points: 1140
Solved Threads: 229
Postaholic
Duoas is offline Offline
2,039 posts
since Oct 2007
Nov 26th, 2007
0

Re: Play with the Cmd PATH

After writing it in C++, I realized that g++ produces fairly large executables... So I rewrote it in Pascal (compiles with Delphi and FPC, but I used Delphi because it produces the smallest exe).

I also found and fixed a couple of (small) errors along the way (nothing to worry about if you are using the earlier version).

Get the new exe and/or sources from the same link as above.

Enjoy!
Featured Poster
Reputation Points: 1140
Solved Threads: 229
Postaholic
Duoas is offline Offline
2,039 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: How much time does it take to register a domain name?
Next Thread in IT Professionals' Lounge Forum Timeline: Stock Feeds for Stock Market Game





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC