| View previous topic :: View next topic |
| Author |
Message |
djodjolyon
Joined: 12 May 2008 Posts: 21
|
Posted: Mon Jun 23, 2008 8:48 pm Post subject: relative path (noob) |
|
|
Hi,
I looked on the forum but it's too much complicated for me...
I'd like to have a relative path instead of the one I have :
Run, C:\Program Files\AutoHotkey\Scripts\Démarrage\explorer
I'd like to move my script (the Autohotkey folder)
Thank you in advance |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Mon Jun 23, 2008 8:52 pm Post subject: Re: relative path (noob) |
|
|
| djodjolyon wrote: | | I'd like to have a relative path instead of the one I have |
Relative to what ?
You could use built-in variable: A_ScriptFullPath
 _________________
 |
|
| Back to top |
|
 |
djodjolyon
Joined: 12 May 2008 Posts: 21
|
Posted: Mon Jun 23, 2008 9:06 pm Post subject: |
|
|
| Quote: | | Relative to what ? Rolling Eyes |
I'd like to move this folder "AutoHotkey" to somewher else.
in my script I need to run "exlorer" which is in AutoHotkey\Scripts\Démarrage\explorer
For the moment my script is like this :
Run, C:\Program Files\AutoHotkey\Scripts\Démarrage\explorer
So, if I changed the autohotkey folder my script doesn't work anymore.
| Quote: |
You could use built-in variable: A_ScriptFullPath |
What I'm I supose to do with that? Something like that?
Run, A_ScriptC:\Program Files\AutoHotkey\Scripts\Démarrage\explorer |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Mon Jun 23, 2008 9:16 pm Post subject: |
|
|
| djodjolyon wrote: | For the moment my script is like this :
Run, C:\Program Files\AutoHotkey\Scripts\Démarrage\explorer
So, if I changed the autohotkey folder my script doesn't work anymore. |
| Code: | SplitPath,A_AhkPath,,A_AhkDir
Run, %A_AhkDir%\Scripts\Démarrage\explorer |
 _________________
 |
|
| Back to top |
|
 |
|