hello
i am looking for an easy way to set my working directory one level up from where it is
i have a tool in tools i want to work on the settings folder
my structure is like this (folders)
Tools
Settings
and here my main program exe that accesses bolth directories
so i run my batch tool from inside tools but want it to work on the settings folder, right now my tool is in the settings folder but it dont belong in there so i wonder if this can be done easily also for people who have zero knowledge of ahk in other words automaticly
Can you set working directory to one level up in a easy way? Topic is solved
Re: Can you set working directory to one level up in a easy way? Topic is solved
The .. syntax in a path takes you up one directory, so if your current directory is Tools then the following code will take you to the Settings directory:
Cheers
Code: Select all
SetWorkingDir ..\Settings
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: Can you set working directory to one level up in a easy way?
awesome thank youTAC109 wrote: ↑20 Apr 2024, 20:35The .. syntax in a path takes you up one directory, so if your current directory is Tools then the following code will take you to the Settings directory:CheersCode: Select all
SetWorkingDir ..\Settings
Who is online
Users browsing this forum: gongnl and 98 guests