AutoHotkey Community

It is currently May 25th, 2012, 4:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: May 13th, 2007, 12:52 pm 
Offline

Joined: October 5th, 2005, 12:40 pm
Posts: 19
Location: china
when i press win+R and input "sendto",then windows open the "sendto" folder in explorer.
but i excute ahk command "run, sendto",that is wrong.
why run command don't support system folders?
thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 5:12 pm 
Not sure about your question (why it doesnt work simplified) tried it myself, doesnt work either. Im sure someone can explain that eventually though.

You've probably already figured out a way to do this regardless of that problem. But none the less.

Code:
Send, #r sendto{enter}
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 9:00 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
run, sendto only tries to run a program called sendto.

you instead want to run C:\(whatever the path is)\sento\

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 9:40 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Code:
StringTrimRight, uPath, A_DeskTop, 7
Run, %uPath%Sendto


Or

Code:
Run, % SubStr( A_DeskTop, 1, StrLen(A_DeskTop) - 7 ) . "SendTo\"


:!:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 10:40 pm 
;)
Code:
Run %UserProfile%\SendTo


Typing "set" at the command prompt reveals a few more too. :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 10:51 pm 
Offline

Joined: May 13th, 2007, 5:40 pm
Posts: 47
*MsgBox wrote:
;)
Typing "set" at the command prompt reveals a few more too. :)


Very Useful, Thank You.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 11:03 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Hi Keith! :D
You have been missing around for sometime!

*MsgBox wrote:
Code:
Run %UserProfile%\SendTo


er.. that would not work with #NoEnv directive :roll:
But in V2 the following one-liner should work:

Code:
Run % EnvGet("UserProfile") . "\SendTo"


:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 12:21 am 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
Hi Goyyah :)

Yes I lost the bug for a while...
...but now I'm ill again. :)

You changed your name :shock: WHY???????

Quote:
er.. that would not work with #NoEnv directive

To be honest I have never used it or even considered the implications of not using it...until now! ... I am still learning :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 12:29 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
MsgBox wrote:
You changed your name :shock: WHY???????


I did not like it :(.

Notification: The nick: Goyyah will be changed to: SKAN

:)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, poserpro and 17 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