Brought to you by the letter "P"

Mark Wieder mwieder at ahsoftware.net
Mon May 31 19:37:40 EDT 2004


Weird-

This is probably something simple that I've completely forgotten about
DOS batch files, but it drove me crazy for a couple of hours today
until I figured out what was going on...

I'm calling a standalone from the command line and processing the
arguments. Single characters only (-r, -t , -p). For some reason I was
having trouble with the -p switch. It works fine from the command
prompt itself, but if I stick the same line in a batch file runrev
doesn't see anything there. If I change the -p to a -q then
everything's fine (and that's my workaround now that I got to the
bottom of why things weren't working.

I checked the batch files with HexWorkshop and there aren't any weird
characters embedded anywhere. Oh - and this is on Win2k SP4.

I think what's happening is that the OS is eating the -p switch if
it's packaged inside a .bat file, but passing it through if I type it
by hand. Very weird. Anyone have a clue about this mystery? Am I just
being dense today?

C:\MyStandalone.exe -p >out.txt      works fine
C:\test.bat >out.txt                 doesn't
(where test.bat contains C:\MyStandalone.exe -p)

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list