Posted on 2001-09-10
Need help with this.
I use ShellExecute to start a .bat file and want to pass variable to it.
Variables is given from dos when I start the program.
It look like this.
ShellExecute(I, 'open', 'c:\command.com', PChar('/c s:\public\homch2.bat '+ ParamStr(1) + ParamStr(2)), nil, sw_hide);
In the bat file it look like this.
renobj %1 %2
Is it the wrong way or wath ????