latoonne Posted December 29, 2005 Posted December 29, 2005 Hello everybodyI have a problem with Run() or RunWait when I try to start my dos program (Dos Marimba Program Runchannel) the program do not work, but if this program is in a dos batch and i start this batch it' s ok.I have tried to use FileGetShortName but nothing , same Pb$CastaRun = @ProgramFilesDir & "\" & "MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" RunWait ($CastaRun & " http://serveur_marimba:5282/Current/Adm/AdmPwd -install")If I use Runwait($OceApps & "AdmPwd.bat","",@SW_HIDE) it's okThank You and sorry for my bad english
sksbir Posted December 29, 2005 Posted December 29, 2005 hello, - i suggest you give us the content of your .bat program. - what is $OceApps, and why is it not used with direct call ?
herewasplato Posted December 29, 2005 Posted December 29, 2005 Use a MsgBox to debug your code.Your code:$CastaRun = @ProgramFilesDir & "\" & "MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" MsgBox(0,"",$CastaRun)makes this:C:\Program Files\MarimbaProdClient\Castanet Tuner\RunChannel -subscribeI'm not sure what you want, but perhaps this code:$CastaRun = '"' & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" & '"' MsgBox(0,"",$CastaRun)is closer to what you want since it makes this:"C:\Program Files\MarimbaProdClient\Castanet Tuner\RunChannel -subscribe"...hope this helps... [size="1"][font="Arial"].[u].[/u][/font][/size]
sksbir Posted December 29, 2005 Posted December 29, 2005 ..... I'm not sure what you want, but perhaps this code:.....yes, that's probably the problem , but $CastaRun = '"' & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" & '"' MsgBox(0,"",$CastaRun) give this result: "C:\Program Files\MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" it should be this "C:\Program Files\MarimbaProdClient\Castanet Tuner\RunChannel" -subscribe so... $CastaRun = """" & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel"" -subscribe" inputbox("test","hello",$CastaRun) (inputbox more convenient to copy/paste results back here
herewasplato Posted December 29, 2005 Posted December 29, 2005 Thanks - You are probably right about the placement of that last double quote. ...input box :-) [size="1"][font="Arial"].[u].[/u][/font][/size]
latoonne Posted December 29, 2005 Author Posted December 29, 2005 yes, that's probably the problem , but $CastaRun = '"' & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" & '"' MsgBox(0,"",$CastaRun) give this result: "C:\Program Files\MarimbaProdClient\Castanet Tuner\RunChannel -subscribe" it should be this "C:\Program Files\MarimbaProdClient\Castanet Tuner\RunChannel" -subscribe so... $CastaRun = """" & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel"" -subscribe" inputbox("test","hello",$CastaRun) (inputbox more convenient to copy/paste results back here The syntax is ok but error message during the compilation $CastaRun = '"' & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel.exe -subscribe http://softdist.noisy.fr.oce.net:5282/Curr...n/AdmPwd/AdmPwd -install" & '"' $CastaRun=FileGetLongName($CastaRun) RunWait($CastaRun) D:\Runchannel.au3 (3) : ==> Unable to execute the external program.:
latoonne Posted December 29, 2005 Author Posted December 29, 2005 The syntax is ok but error message during the compilation$CastaRun = '"' & @ProgramFilesDir & "\MarimbaProdClient\Castanet Tuner\RunChannel.exe -subscribe http://softdist.noisy.fr.oce.net:5282/Curr...n/AdmPwd/AdmPwd -install" & '"'$CastaRun=FileGetLongName($CastaRun)RunWait($CastaRun)D:\Runchannel.au3 (3) : ==> Unable to execute the external program.:Youpi, It's OK I have taken the bad syntax Thank's EveryBody and Good New Year for you and your family.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now