rajeshontheweb Posted March 19, 2009 Share Posted March 19, 2009 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. Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Triblade Posted March 19, 2009 Share Posted March 19, 2009 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) Link to comment Share on other sites More sharing options...
rajeshontheweb Posted March 19, 2009 Author Share Posted March 19, 2009 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 Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
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