View Single Post
  #5 (permalink)  
Old 03-05-2007, 04:00 PM
Dick Watson
Newsgroup Contributor
 
Posts: n/a
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



Reply With Quote

 
Old 03-05-2007, 04:00 PM