| View previous topic :: View next topic |
| Author |
Message |
vital
Joined: 05 Oct 2005 Posts: 17 Location: china
|
Posted: Sun May 13, 2007 12:52 pm Post subject: how to open system folders by run command like win+R |
|
|
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 |
|
 |
Travley Guest
|
Posted: Sun May 13, 2007 5:12 pm Post subject: |
|
|
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
|
Posted: Sun May 13, 2007 9:00 pm Post subject: |
|
|
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sun May 13, 2007 9:40 pm Post subject: |
|
|
| Code: | StringTrimRight, uPath, A_DeskTop, 7
Run, %uPath%Sendto |
Or
| Code: | | Run, % SubStr( A_DeskTop, 1, StrLen(A_DeskTop) - 7 ) . "SendTo\" |
 |
|
| Back to top |
|
 |
*MsgBox Guest
|
Posted: Sun May 13, 2007 10:40 pm Post subject: |
|
|
| Code: | | Run %UserProfile%\SendTo |
Typing "set" at the command prompt reveals a few more too.  |
|
| Back to top |
|
 |
Travley
Joined: 13 May 2007 Posts: 48
|
Posted: Sun May 13, 2007 10:51 pm Post subject: |
|
|
| *MsgBox wrote: |
Typing "set" at the command prompt reveals a few more too.  |
Very Useful, Thank You. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Sun May 13, 2007 11:03 pm Post subject: |
|
|
Hi Keith!
You have been missing around for sometime!
| *MsgBox wrote: | | Code: | | Run %UserProfile%\SendTo |
|
er.. that would not work with #NoEnv directive
But in V2 the following one-liner should work:
| Code: | | Run % EnvGet("UserProfile") . "\SendTo" |
 |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Mon May 14, 2007 12:21 am Post subject: |
|
|
Hi Goyyah
Yes I lost the bug for a while...
...but now I'm ill again.
You changed your name 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  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
|
| Back to top |
|
 |
|