Predator
12th October 2009, 19:32
Hi,
I am facing problem on calling wordpad as scripts below:-
ret = app_start("wordpad.exe" & "c:/error1.txt" ,"","","","")
if i use the script above, nothing pop up but if use the scripts below
ret = app_start("c:/error1.txt" ,"","","","")
it pop up notepad.
what cause the problem on this.
please advise.
mark_h
12th October 2009, 20:25
First on the local PC - check and make sure wordpad.exe is in the path name. Probably just starting a cmd shell, typing wordpad.exe to see if it works. If it does not then locate where it is executed from and put in the path name. Second - add a space after "wordpad.exe" in the command - it should be wordpad.exe c:/error1.txt. Not sure about your forward slash versus my windows client which uses backslash.
And if you want you can always go in an associate the .txt extension with wordpad versus notepad. I probably would not do this, but it should also work.
grzegorz
12th October 2009, 22:08
First of all: you missed a space between"wordpad.exe" and "c:\error1.txt". The string you use as first argument of app.start is "wordpad.exe" & "c:/error1.txt" and it evaluates to "wordpad.exec:/error1.txt". Should be "wordpad.exe " & "c:/error1.txt" with a space after "wordpad.exe".
=============
uuuups! that's what happend if one does not read previous posts carefull enough. Sorry, Mark, you wrote the same !
=============