here is the code:
Code: Select all
IfNotExist, %A_Temp%\AHK.txt
{
sleep, 5000
DriveGet, List, List, Fixed
Loop Parse, List
Loop %A_LoopField%:\_DropBox_Location.,1,1
DB_Path := A_LoopFileDir
}
msgbox, %db_path%
IniWrite, %DB_Path%, %A_Temp%\AHK.txt, DropBox, Location
IniRead, DB_Path, %A_Temp%\AHK.txt, DropBox, Location
IniRead, Mach_Name, %A_Temp%\AHK.txt, Machine, Name
startup_file = AHK Startup - %Mach_Name%.ahk
msgbox, %db_path%\AHK\%startup_file%
exitapp