oompah 0 Posted May 10, 2004 I give up. How do you open this file in this program?C:\Program Files\Karen's Replicator\Replicator-log.txtC:\Program Files\Windows NT\Accessories\wordpad.exeTried maybe 15 variations with the Run command. All result in Run(...Karen's Replicator^ERRORError: Unable to parse line Share this post Link to post Share on other sites
ezzetabi 3 Posted May 10, 2004 Win 9x run(@comspec & " /c start "C:\Program Files\Karen's Replicator\Replicator-log.txt","",@sw_hide) Win2000 run(@comspec & " /c start "" "C:\Program Files\Karen's Replicator\Replicator-log.txt","",@sw_hide) Share this post Link to post Share on other sites
oompah 0 Posted May 10, 2004 Win 9xrun(@comspec & " /c start "C:\Program Files\Karen's Replicator\Replicator-log.txt","",@sw_hide)Win2000run(@comspec & " /c start "" "C:\Program Files\Karen's Replicator\Replicator-log.txt","",@sw_hide)The question is, How do you open the file in wordpad.exe? (In WinXP.) Share this post Link to post Share on other sites
oompah 0 Posted May 10, 2004 $Parm = '"C:\Program Files\Karen's Replicator\Replicator-log.txt"' $File = '"C:\Program Files\Windows NT\Accessories\wordpad.exe"' Run($File & " " & $Parm) Lar."Unable to parse line." BTW, this works in AutoIt v2: Run, "C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe" "C:\\Program Files\\Karen's Replicator\\Replicator-log.txt" And this works in a Desktop shortcut: "C:\Program Files\Windows NT\Accessories\wordpad.exe" "C:\Program Files\Karen's Replicator\Replicator-log.txt" Share this post Link to post Share on other sites
Valik 478 Posted May 10, 2004 The ' in Karen's is terminating the string too early. Share this post Link to post Share on other sites
oompah 0 Posted May 10, 2004 The ' in Karen's is terminating the string too early.Ah-ha. Tried Karen''s (two apostrophes), and it works. Thanks. Share this post Link to post Share on other sites
trids 2 Posted May 10, 2004 If you let us see exactly what you have tried, it would help The general solution would be along the lines of: Run("""Editor Name.EXE"" ""Data File.txt""") .. this would take care of embedded apostrophes Share this post Link to post Share on other sites
oompah 0 Posted May 10, 2004 (edited) If you let us see exactly what you have tried, it would helpĀ The general solution would be along the lines of: Run("""Editor Name.EXE"" ""Data File.txt""") .. this would take care of embedded apostrophesTrids, this is working fine: Run('C:\Program Files\Windows NT\Accessories\wordpad.exe "C:\Program Files\Karen''s Replicator\Replicator-log.txt"') Thanks everyone. Edit: Oh! I see what you've done now. Good. Edited May 10, 2004 by oompah Share this post Link to post Share on other sites