summaryrefslogtreecommitdiff
path: root/windows/neo-vars/src
diff options
context:
space:
mode:
authormösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-05-12 00:09:16 +0000
committermösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-05-12 00:09:16 +0000
commitda53f074fef73c940d744ad6f2bff2c50cd49f26 (patch)
tree105c4d3b49a67ef8e87cd504e21262a21310b594 /windows/neo-vars/src
parentc8d24d23fad1a2ed2abd7aba8435c57c05c4ccfc (diff)
downloadneo-layout-da53f074fef73c940d744ad6f2bff2c50cd49f26.tar.gz
neo-layout-da53f074fef73c940d744ad6f2bff2c50cd49f26.tar.bz2
neo-layout-da53f074fef73c940d744ad6f2bff2c50cd49f26.zip
Sollte es bei dem Benutzer, der das Skript startet, die Umgebungsvariable APPDATA nicht geben, wird ein entsprechender Pfad von USERPROFILE aus erzeugt.
git-svn-id: https://svn.neo-layout.org@1836 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src')
-rw-r--r--windows/neo-vars/src/source/initialize.ahk4
1 files changed, 4 insertions, 0 deletions
diff --git a/windows/neo-vars/src/source/initialize.ahk b/windows/neo-vars/src/source/initialize.ahk
index 24ca778..86339c2 100644
--- a/windows/neo-vars/src/source/initialize.ahk
+++ b/windows/neo-vars/src/source/initialize.ahk
@@ -41,6 +41,10 @@ SetScrollLockState Off
KeyboardLED(2,"off") ; deaktivieren, falls sie doch brennt
EnvGet, WindowsEnvAppDataFolder, APPDATA
+if (WindowsEnvAppDataFolder == "") {
+ EnvGet, WindowsEnvAppDataFolder, USERPROFILE
+ WindowsEnvAppDataFolder .= "\Anwendungsdaten"
+}
ApplicationFolder = %WindowsEnvAppDataFolder%\NEO2
FileCreateDir, %ApplicationFolder%
ini = %ApplicationFolder%\NEO2.ini