peiyoon
November 5th, 2002, 03:27 AM
Hi sir,
currently i m doing a research, i tried to launch a dos cmd windown using my program in vb.net and passing few parameters by parameters at one at time. how can i do so???
i am searching for advice and suggestions. i have tried the following ways in developing but i failed to get my result.
following are some of the ways tat i have tired, but i failed.
i have tried using the batch file to execute my pgp.exe program but it doesn;t work.
eg. a.bat (tis is my content of my batch file)
cd d:\
d:\pgpk -g (add a new user gp in my pgp.exe)
1 (expecting parameter)
1
(userid)
(phrase userid)
(confirm phrase userid)
the above is how i wrote my batch file. wen i execute it by this a.bat, the whole program will hang and i got to end the command prompt the my pgp.exe hang there. This is because the pgp.exe file expecting user interaction wf the program.
please advice me.
regards,
peiyoon
ps: i have tried to lauch a cmd.exe from vb program then try to pass some parameter. but failed get "invalid procedure call or argument"
currently i m doing a research, i tried to launch a dos cmd windown using my program in vb.net and passing few parameters by parameters at one at time. how can i do so???
i am searching for advice and suggestions. i have tried the following ways in developing but i failed to get my result.
following are some of the ways tat i have tired, but i failed.
i have tried using the batch file to execute my pgp.exe program but it doesn;t work.
eg. a.bat (tis is my content of my batch file)
cd d:\
d:\pgpk -g (add a new user gp in my pgp.exe)
1 (expecting parameter)
1
(userid)
(phrase userid)
(confirm phrase userid)
the above is how i wrote my batch file. wen i execute it by this a.bat, the whole program will hang and i got to end the command prompt the my pgp.exe hang there. This is because the pgp.exe file expecting user interaction wf the program.
please advice me.
regards,
peiyoon
ps: i have tried to lauch a cmd.exe from vb program then try to pass some parameter. but failed get "invalid procedure call or argument"