Sign in to follow this  
Followers 0
latoonne

Pb with @comSpec

7 posts in this topic

Hello everybody

I 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 ok

Thank You and sorry for my bad english

Share this post


Link to post
Share on other sites



hello,

- i suggest you give us the content of your .bat program.

- what is $OceApps, and why is it not used with direct call ?

Share this post


Link to post
Share on other sites

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 -subscribe

I'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]

Share this post


Link to post
Share on other sites

.....

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 :P

Share this post


Link to post
Share on other sites

Thanks - You are probably right about the placement of that last double quote.

...input box :-)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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 :P

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.:

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0