Re: executing batch file from different folder not working ?
This is probably wrong, this is old stuff for me, but does not excution from
batch files require the full pathname to the *.EXE if it is not guaranteed
to be in the current directory - or further down the tree from the current
directory?
I seem to remember there was always some kind of inconsistency that tought
me to always write them that way, way back when.
Anyway, what is the current directory? Is "C:\bla\bla" the batchfile home or
just anywhere?
'Piping', wasn't mentioned in the example code, but that could complicate
matters, I'm sure.
Tony. . .
"Charlie Russel - MVP" <charlie@mvKILLALLSPAMMERSps.org> wrote in message
news:FD7D8B55-5E00-4FEF-9AE1-B505BC78FE19@microsoft.com...
> If the program.exe you're calling requires elevation, this will fail. If
> it does NOT require elevation, it will work. And in all cases if you open
> an elevated command shell, it will work.
>
> --
> Charlie.
> http://msmvps.com/xperts64
> http://mvp.support.microsoft.com/profile/charlie.russel
>
>
> "Skybuck Flying" <spam@hotmail.com> wrote in message
> news:40c$47930f4e$541983fa$14059@cache5.tilbu1.nb.home.nl...
>> Hello.
>>
>> file contents neuk.bat:
>> program.exe
>>
>> console commands entered:
>> cd c:\bla\bla
>> c:\bla\bla\neuk.bat
>>
>> "can't execute program.exe" it says.
>>
>> This seems abnormal from ms-dos 6.22 days ?
>>
>> The batch file is supposed to execute the program.exe no matter from what
>> folder the batch file is invoked ?
>>
>> Seems to be a bug ????
>>
>> Or is this a new "security feature" ?
>>
>> Bye,
>> Skybuck.
>>
>