|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| executable for cmd not in path? I'm trying to add an external command line utility (fsum.exe from slavasoft) to a WinXP system but do not want to just dump the executable in %SystemRoot%\system32 for reasons of traceability as to how all of the add-in stuff like this got on the system. But I also don't want to add %ProgramFile%\misc\fsum (wherein I document the source of the code, etc) to the system environment path in order to avoid the path getting any more out of hand than it already is and to avoid adding lots of directories (where anything will be run from) to the path when I just want to be able to find one specific executable. I've tried creating a .lnk in %SystemRoot%, but cmd doesn't follow these. I've tried registering HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\App Paths\fsum.exe with a default REG_EXPANS_SZ pointing to the executable, but cmd also appears to ignore these. What is the "best practice" way to get a specific external command in the path? Just put a copy of the executable in %SystemRoot% or %SystemRoot%\system32? |
| |||
| Re: executable for cmd not in path? Dick Watson wrote :: > I'm trying to add an external command line utility (fsum.exe from slavasoft) > to a WinXP system but do not want to just dump the executable in > %SystemRoot%\system32 for reasons of traceability as to how all of the > add-in stuff like this got on the system. But I also don't want to add > %ProgramFile%\misc\fsum (wherein I document the source of the code, etc) to > the system environment path in order to avoid the path getting any more out > of hand than it already is and to avoid adding lots of directories (where > anything will be run from) to the path when I just want to be able to find > one specific executable. Create a .bat or .cmd file in one of the folders listed in paths and use the bat file to launch your exe with params. Bat Ex: start /d"C:\Program Files\misc\fsum" fsum.exe "%1" "%2" "%3" "%4" "%5" Good Luck, Ayush. -- XP-Tips [Adjust the vertical space between icons] : http://www.microsoft.com/windowsxp/u...iconspace.mspx |
| |||
| Re: executable for cmd not in path? What process calls it? Why not call it using the fully qualified path? %ProgramFile%\misc\fsum.exe -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Dick Watson" wrote: > I'm trying to add an external command line utility (fsum.exe from > slavasoft) to a WinXP system but do not want to just dump the executable > in %SystemRoot%\system32 for reasons of traceability as to how all of the > add-in stuff like this got on the system. But I also don't want to add > %ProgramFile%\misc\fsum (wherein I document the source of the code, etc) > to the system environment path in order to avoid the path getting any more > out of hand than it already is and to avoid adding lots of directories > (where anything will be run from) to the path when I just want to be able > to find one specific executable. > > I've tried creating a .lnk in %SystemRoot%, but cmd doesn't follow these. > I've tried registering > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\App > Paths\fsum.exe with a default REG_EXPANS_SZ pointing to the executable, > but cmd also appears to ignore these. > > What is the "best practice" way to get a specific external command in the > path? Just put a copy of the executable in %SystemRoot% or > %SystemRoot%\system32? > |
| |||
| Re: executable for cmd not in path? Typing in a cmd shell. That's why forcing the user to use a hard path is not really attractive. "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message news:4E9C98CF-DA1C-49CE-AFA1-18A2AF29D534@microsoft.com... > What process calls it? Why not call it using the fully qualified path? > > %ProgramFile%\misc\fsum.exe |
| |||
| Re: executable for cmd not in path? This is probably the best approach. But I' want to use %* so that I can pass all the params without regard to how many there are. Great idea! It hadn't even occurred to me... Thanks! "Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message news:eNaAzl3XHHA.4232@TK2MSFTNGP05.phx.gbl... > Dick Watson wrote :: >> I'm trying to add an external command line utility (fsum.exe from >> slavasoft) to a WinXP system but do not want to just dump the executable >> in %SystemRoot%\system32 for reasons of traceability as to how all of the >> add-in stuff like this got on the system. But I also don't want to add >> %ProgramFile%\misc\fsum (wherein I document the source of the code, etc) >> to the system environment path in order to avoid the path getting any >> more out of hand than it already is and to avoid adding lots of >> directories (where anything will be run from) to the path when I just >> want to be able to find one specific executable. > > > Create a .bat or .cmd file in one of the folders listed in paths and use > the bat file to launch your exe with params. > > Bat Ex: > start /d"C:\Program Files\misc\fsum" fsum.exe "%1" "%2" "%3" "%4" "%5" > > > > Good Luck, Ayush. > -- > XP-Tips [Adjust the vertical space between icons] : > http://www.microsoft.com/windowsxp/u...iconspace.mspx |
| |||
| Re: executable for cmd not in path? Forcing the user to a command prompt in-of-itself might be a problem. Why not create a shortcut? If you need the window kept open then; cmd /k %ProgramFile%\misc\fsum.exe -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Dick Watson" wrote: > Typing in a cmd shell. That's why forcing the user to use a hard path is > not really attractive. |
| |||
| Re: executable for cmd not in path? Without the parameters, fsum is useless. Short of putting a whole UI on it, it's really just an external command. The users are people like me who don't mind typing commands. "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message news:e1OoYJ4XHHA.4440@TK2MSFTNGP03.phx.gbl... > Forcing the user to a command prompt in-of-itself might be a problem. Why > not create a shortcut? If you need the window kept open then; > > cmd /k %ProgramFile%\misc\fsum.exe |
| |||
| Re: executable for cmd not in path? Dick Watson wrote :: > This is probably the best approach. But I' want to use %* so that I can pass > all the params without regard to how many there are. > > Great idea! It hadn't even occurred to me... Thanks! You are welcome. Good Luck, Ayush. -- Google Groups: http://groups.google.com/ |
| |||
| Re: executable for cmd not in path? OK, gotcha. You could probably capture the arg string using input box with VBScript and call it that way. -- Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Dick Watson" wrote: > Without the parameters, fsum is useless. Short of putting a whole UI on > it, it's really just an external command. The users are people like me who > don't mind typing commands. |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VBS script with spaces in executable path | Tyler Durden | Windows XP | 3 | 10-17-2008 03:26 AM |
| time executable | jo | Windows Vista | 0 | 05-02-2008 07:50 PM |
| Relative path names don't work with # in root path with local # links | AeroKid | Internet Explorer | 2 | 04-22-2008 02:20 AM |
| Service Executable | bill | Windows XP | 1 | 04-03-2007 01:45 PM |
| Executable | Paka | Windows Vista | 2 | 03-02-2007 07:00 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |