Add an entry to system path variable

Author Message
bnedescu

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 11/21/2008
  • Status: offline
Add an entry to system path variable Friday, November 21, 2008 10:20 PM (permalink)
0
This script will add an entry to system path variable. Save the next script as a .bat file. The script calls an .exe file that will do the job. You need to place modpath.exe into the same folder as the .bat file. Get modpath.exe from here: http://legroom.net/software/modpath (to download it, click on "ModPath AutoIt Binary")

 START modpath.exe /add "C:\Program Files\YourProgram\sys\exe\"
 EXIT
 


The /del parameter will remove the same directory if it already exists in the path

 START modpath.exe /del "C:\Program Files\YourProgram\sys\exe\"
 EXIT
 


Enjoy!
<message edited by bnedescu on Friday, November 21, 2008 10:47 PM>
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9