Sign in to follow this  
Followers 0
rajeshontheweb

Need help running a console app (contig.exe)

3 posts in this topic

I have contig.exe in a folder where my script is gonna be. it is not running pls help.

this is my command

Local $Command = Run("@ComSpec  & ""  /c  '" &   $Contig & "'" & CHR(34) & " -s c:\" &   ", @SystemDir, @SW_HIDE, BitOR($STDERR_CHILD,$STDOUT_CHILD)")
Local $line

While 1
    $line = StdoutRead($Command)
    If @error Then ExitLoop
    MsgBox(0, "STDOUT read:", $line)
Wend

While 1
    $line = StderrRead($Command)
    If @error Then ExitLoop
    MsgBox(0, "STDERR read:", $line)
Wend

If i run cmd /c "Contig.exe" then it will return a small error message saying the command is not valid but this is not shown outside.

Share this post


Link to post
Share on other sites



First, isn't it 'config.exe'?

And second,

("@ComSpec  & ""  /c  '" &   $Contig & "'" & CHR(34) & " -s c:\" &   ", @SystemDir, @SW_HIDE, BitOR($STDERR_CHILD,$STDOUT_CHILD)")

Aren't the quotes a bit off there? Like

& "" /c
instead of
" & " /c

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites

sorry , my bad was a bit too hasty to post it

anyways i am gonna use this thread for all the errors i face in here

it is contig.exe

this is gonna be my dream project i have been long waiting to get well and work on a GUI for contig.exe from systinternals (Microsoft has taken over it)

it is too damn good a tool for system defragmentation.....

i got it to work here is what i used i wanted to post the correction and then i saw ur reply

pls look at this it works now .

Local $Command = Run(@ComSpec  & "  /c " & chr(34) & $Contig &  Chr(34) ,@SystemDir, @SW_HIDE, $STDERR_CHILD+$STDOUT_CHILD)

thank u

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