| | |
Play with the Cmd PATH
![]() |
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!
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.
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!
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!
![]() |
Similar Threads
- Compile Java (Java)
- Pausing program with getchar(); (C)
- trouble compiling (Java)
- adding sound (Visual Basic 4 / 5 / 6)
- Internet Explorer-OUT OF ORDER + More (Viruses, Spyware and other Nasties)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- mciSendString(); (C++)
- dxsetu.exe (Viruses, Spyware and other Nasties)
- Need Help for DNS Problem and 'about:blank' Problem ... (Viruses, Spyware and other Nasties)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: How much time does it take to register a domain name?
- Next Thread: Stock Feeds for Stock Market Game
| Thread Tools | Search this Thread |
1gbit advertising advice amazon archive british broadband business businessprocesses career carrier censorship cern china cio collectiveintelligence connectivity consumer consumers corporateearnings datatransfer debtcollectors dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping piracy piratebay pope porn program r&d religion remoteworking research retail security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen twitter uk videoinprint voips web webdeveloper windows words






