grakker 0 Posted December 27, 2004 I'm really having a hard time with this. From a dos window I can run:C:\Whatever\Directory>sed 's/","/ /' c:\StartingFile > c:\EndingFile Which works great. Runs about 2 seconds on a 90,000 line file. It should be simple to run from Autoit. Yet this:RunWait(@ComSpec & ' /c ' & @SystemDir & "\sed 's/"",""/ /' c:\StartingFile > c:\EndingFile", @SW_HIDE) Gives the following error: C:\AutoItFiles\CleanCustomerBridge.au3 (29) : ==> Unable to execute the external program.: RunWait(@ComSpec & ' /c ' & @SystemDir & "\sed 's/"",""/ /' c:\StartingFile > c:\EndingFile", @SW_HIDE) The directory name is invalid. I've tried it w/o the @SystemDir and as many different variables as I could try. Thanks in advance. Share this post Link to post Share on other sites
Josbe 1 Posted December 27, 2004 The directory name is invalid.What about SED file? System's file?Check the quotes, too. (correctly closed?) AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Share this post Link to post Share on other sites
SlimShady 1 Posted December 27, 2004 This is tested with the ECHO command: RunWait(@ComSpec & ' /c sed ''s/","/ /'' c:\StartingFile > c:\EndingFile', @SystemDir, @SW_HIDE) Share this post Link to post Share on other sites
normeus 0 Posted December 28, 2004 this is how I run my AWK stuff in win 98: $val = RunWait("C:\GAWK\BIN\gawk.exe -fd:\prg\printcnt.awk d:\user\cnt\*.cnt") (AWK is SED's older brother) http://www.autoitscript.com/autoit3/scite/...iTe4AutoIt3.exe Share this post Link to post Share on other sites
grakker 0 Posted December 28, 2004 this is how I run my AWK stuff in win 98:$val = RunWait("C:\GAWK\BIN\gawk.exe -fd:\prg\printcnt.awk d:\user\cnt\*.cnt")(AWK is SED's older brother)<{POST_SNAPBACK}>Coming from *nix, I'm pretty versed in most common CLI apps. My problem was that I wasn't reading the help file correctly. I just needed to add and extra parameter to the RunWait command in order to use the @SW_HIDE option.Thanks everyone. Share this post Link to post Share on other sites