AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to open system folders by run command like win+R

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
vital



Joined: 05 Oct 2005
Posts: 17
Location: china

PostPosted: Sun May 13, 2007 12:52 pm    Post subject: how to open system folders by run command like win+R Reply with quote

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
Back to top
View user's profile Send private message
Travley
Guest





PostPosted: Sun May 13, 2007 5:12 pm    Post subject: Reply with quote

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
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Sun May 13, 2007 9:00 pm    Post subject: Reply with quote

run, sendto only tries to run a program called sendto.

you instead want to run C:\(whatever the path is)\sento\
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sun May 13, 2007 9:40 pm    Post subject: Reply with quote

Code:
StringTrimRight, uPath, A_DeskTop, 7
Run, %uPath%Sendto


Or

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


Exclamation
Back to top
View user's profile Send private message
*MsgBox
Guest





PostPosted: Sun May 13, 2007 10:40 pm    Post subject: Reply with quote

Wink
Code:
Run %UserProfile%\SendTo


Typing "set" at the command prompt reveals a few more too. Smile
Back to top
Travley



Joined: 13 May 2007
Posts: 48

PostPosted: Sun May 13, 2007 10:51 pm    Post subject: Reply with quote

*MsgBox wrote:
Wink
Typing "set" at the command prompt reveals a few more too. Smile


Very Useful, Thank You.
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Sun May 13, 2007 11:03 pm    Post subject: Reply with quote

Hi Keith! Very Happy
You have been missing around for sometime!

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


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

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


Smile
Back to top
View user's profile Send private message
MsgBox



Joined: 17 Nov 2005
Posts: 179
Location: Leicester, UK

PostPosted: Mon May 14, 2007 12:21 am    Post subject: Reply with quote

Hi Goyyah Smile

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

You changed your name Shocked 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 Smile
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5887

PostPosted: Mon May 14, 2007 12:29 am    Post subject: Reply with quote

MsgBox wrote:
You changed your name Shocked WHY???????


I did not like it Sad.

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

Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group