oompah Posted May 10, 2004 Share 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 Link to comment Share on other sites More sharing options...
ezzetabi Posted May 10, 2004 Share 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) Link to comment Share on other sites More sharing options...
oompah Posted May 10, 2004 Author Share 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.) Link to comment Share on other sites More sharing options...
oompah Posted May 10, 2004 Author Share 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" Link to comment Share on other sites More sharing options...
Valik Posted May 10, 2004 Share Posted May 10, 2004 The ' in Karen's is terminating the string too early. Link to comment Share on other sites More sharing options...
oompah Posted May 10, 2004 Author Share 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. Link to comment Share on other sites More sharing options...
trids Posted May 10, 2004 Share 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 Link to comment Share on other sites More sharing options...
oompah Posted May 10, 2004 Author Share 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 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