IniRead/write in parent folder Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ahk-apprenti
Posts: 8
Joined: 19 Apr 2018, 20:00

IniRead/write in parent folder

16 May 2018, 14:57

Hi,

I would like my script to be able to read and write to an .ini file, in its parent folder. I would like to be able to move my files without any problem, so i cant use something like "C:\Test1\config.ini"

This is where i need to write the path : IniRead, OutputVar, config.ini, HotkeyRemap, TouchepourleD

I searched and I know that to be movable it's what you have to use : %A_WorkingDir%

I know how to go to subfolders : %A_WorkingDir%\subfolder\config.ini

But not the parent files...

Thank you
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: IniRead/write in parent folder  Topic is solved

16 May 2018, 15:00

Try this: \..

Code: Select all

%A_WorkingDir%\..\subfolder\config.ini
I hope that helps.
Ahk-apprenti
Posts: 8
Joined: 19 Apr 2018, 20:00

Re: IniRead/write in parent folder

17 May 2018, 02:57

it works perfectly

thank you very much

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, Frogrammer and 260 guests