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 

relative path (noob)

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



Joined: 12 May 2008
Posts: 21

PostPosted: Mon Jun 23, 2008 8:48 pm    Post subject: relative path (noob) Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Mon Jun 23, 2008 8:52 pm    Post subject: Re: relative path (noob) Reply with quote

djodjolyon wrote:
I'd like to have a relative path instead of the one I have


Relative to what ? Rolling Eyes
You could use built-in variable: A_ScriptFullPath

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



Joined: 12 May 2008
Posts: 21

PostPosted: Mon Jun 23, 2008 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Mon Jun 23, 2008 9:16 pm    Post subject: Reply with quote

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


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