AutoHotkey Community

It is currently May 27th, 2012, 1:00 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: December 31st, 2009, 11:26 am 
Offline

Joined: February 11th, 2009, 2:23 pm
Posts: 142
Location: India
Why doesn't this work?
Code:
run,%A_workingdir%/answer.html

instead of opening that webpage stored in my working directory,
it gives me an error box saying following thing
Quote:
Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 31st, 2009, 11:38 am 
MsgBox reveals all...

Code:
msgbox, Run, %A_WorkingDir%/answer.html
msgbox wrote:
Run, C:\/answer.html

...solutions...
  • Remove %A_WorkingDir%, since it's implied...

    Code:
    Run, answer.html
  • Make a var containing %A_WorkingDir%, then replace the \ (backslashes) with / (slashes), then use that var in Run...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 1st, 2010, 4:10 am 
Offline

Joined: February 11th, 2009, 2:23 pm
Posts: 142
Location: India
@guest,

thanks a lot , it solved it :D
Happy new year too !!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Leef_me, WillTroll, XstatyK, Yahoo [Bot] and 31 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group