Store the script folder into a variable. only folder and not full path! Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ganas

Store the script folder into a variable. only folder and not full path!  Topic is solved

24 Nov 2017, 18:43

Hello,

How to store the script folder name only and not the full path?

A_WorkingDir return fullpath...\foldername

Thanks!
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Store the script folder into a variable. only folder and not full path!

24 Nov 2017, 19:01

AHK paths and dirs. Cheers.

Code: Select all

q::
SplitPath, A_WorkingDir, vWorkingDirName
SplitPath, A_ScriptDir, vScriptDirName
SplitPath, A_AhkPath,, vAhkExeDir
SplitPath, vAhkExeDir, vAhkExeDirName
MsgBox, % A_WorkingDir "`r`n" vWorkingDirName "`r`n`r`n" A_ScriptFullPath "`r`n" vScriptDirName "`r`n`r`n" A_AhkPath "`r`n" vAhkExeDirName
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: DataLife, Google [Bot], pgeugene, Rohwedder and 119 guests