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

Get help with using AutoHotkey 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: 2934
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] [Download] GeSHi © Codebox Plus

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

Return to “Ask For Help”

Who is online

Users browsing this forum: chngrcn and 77 guests