Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
U3Helper/U3H_appStart.ahk
mbirth 0e58eae164 + remove bad attributes from files/dirs before deleting them on hostCleanUp
x create directory if needed in FileCopyNewer()
* more optimizations so that U3Helper now can be installed as a separate U3-Package (GUID: 0f90f88c-5e05-4cab-8c3a-e1c0112b06fd)
2007-04-17 16:49:19 +00:00

35 lines
669 B
AutoHotkey

EnvSet USERPROFILE, % EnvValue("U3_APP_DATA_PATH")
EnvSet HOMEPATH, % EnvValue("U3_APP_DATA_PATH")
EnvSet APPDATA, % EnvValue("U3_APP_DATA_PATH") . "\Application Data"
; add custom PATH directories
EnvGet ePATH, PATH
IniGetKeys("envdir", INIFile, "EnvPath")
Loop %envdir0%
{
CurPath := envdir%A_Index%
CurPath := EnvParseStr(CurPath)
ePATH := CurPath . ";" . ePATH
}
EnvSet PATH, %ePATH%
EnvGet APPDATA, APPDATA
IfNotExist %APPDATA%
{
FileCreateDir %APPDATA%
}
SetWorkingDir %U3_HOST_EXEC_PATH%
cmdl := AppExe
Loop %0%
{
If (A_Index > 1)
{
cmdl := cmdl . " " . %A_Index%
}
}
OnExit ASOnExit
RunWait %cmdl%
OnExit