I'm not sure if this is the correct forum for this
if not, please point me in the right direction
I am creating small vb.net application that will ping a sql server
I am using calling the vb.net exe from a vfp program using shellexecute
the structure of the shellexecute is as follows;
DECLARE INTEGER ShellExecute IN shell32.DLL ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
**
in_params = 'GTSSQLTRECS01',, passing this value
cAction = "open"
cFileName = "c:\temp\ping_servers.exe" << name of my vb.bnet exe
cParams = In_Params
cPath = ""
what I am interested in is the value of the field cparams--i will be passing different values for example if the first sqerver is not available
i'll be passing a second.
in my Vb.net, how/where do i set up the program to accept the value being passed??
this is my statement mRtn = ShellExecute(0,cAction,cFileName,cParams,cPath,1)
any comments/suggestions greatly appreicated
Thanks in advance
if not, please point me in the right direction
I am creating small vb.net application that will ping a sql server
I am using calling the vb.net exe from a vfp program using shellexecute
the structure of the shellexecute is as follows;
DECLARE INTEGER ShellExecute IN shell32.DLL ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
**
in_params = 'GTSSQLTRECS01',, passing this value
cAction = "open"
cFileName = "c:\temp\ping_servers.exe" << name of my vb.bnet exe
cParams = In_Params
cPath = ""
what I am interested in is the value of the field cparams--i will be passing different values for example if the first sqerver is not available
i'll be passing a second.
in my Vb.net, how/where do i set up the program to accept the value being passed??
this is my statement mRtn = ShellExecute(0,cAction,cFileName,cParams,cPath,1)
any comments/suggestions greatly appreicated
Thanks in advance