July 3, 2003 at 11:05 am
Hi,
can anybody guide me how can i run a external program (.exe) from SP
for example, i have one program call myprogram.exe
when i call the SP, then the SP will call myprogram.exe when required.
one more thing, how can i check whether the program is existed from SP
Thanks
July 3, 2003 at 12:07 pm
You could run any .EXE as follows using xp_cmdshell :
xp_cmdshell'c:\winnt\system32\ping.EXE'
.
July 3, 2003 at 12:50 pm
hi mdamera,
thank for your reply, i forget to mentioned on point i.e i need myprogram.exe to be run asynchronously.Because xp_cmdshell operates synchronously.
i've though on way to do that, but wonder ??
i create an OLE Automation, create an instance of this object and call the method to run the program, however, when creating the object from SP, which give me an error
i'm using sp_OACreate ,please guide
thanks
July 3, 2003 at 6:14 pm
I am not sure. Other members are most welcome to give few thoughts!!!
.
July 3, 2003 at 6:32 pm
How about a scheduled job that can get activated on request?
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply