?"OUTLOOK"
IF EXIST ("H:\pc_outlook\outlook.pst")
;nothing
ELSE
IF exist("H:\pc_outlook")
ELSE
MD "H:\pc_outlook"
?" OUTLOOK: neuer Ordner H:\pc_outlook erstellt"
ENDIF
IF exist("H:\pc_outlook\outlook.pst")
ELSE
copy "X:\outlook\outlook.pst" "H:\pc_outlook"
?" OUTLOOK: neue Datei angelegt, da keine vorhanden"
ENDIF
;anmelde-einstellungen (username etc)"
shell "cmd.exe /c mkdir %temp%\$outlook > %temp%\nil"
shell ('cmd.exe /c echo "Account Name"="server" > %temp%\$outlook\1')
shell ('cmd.exe /c echo "Connection Type"=dword:00000001 > %temp%\$outlook\2')
shell ('cmd.exe /c echo "POP3 Server"="server" > %temp%\$outlook\3')
shell ('cmd.exe /c echo "POP3 USER Name"="%USERNAME%" > %temp%\$outlook\4')
shell ('cmd.exe /c echo "POP3 USE Sicily"=dword:00000000 > %temp%\$outlook\5')
shell ('cmd.exe /c echo "POP3 Prompt for Password"=dword:00000001 > %temp%\$outlook\6')
shell ('cmd.exe /c echo "SMTP Server"="server" > %temp%\$outlook\7')
shell ('cmd.exe /c echo "SMTP Display Name"="%USERNAME%" > %temp%\$outlook\8')
shell ('cmd.exe /c echo "SMTP Email Address"="%USERNAME%@@server" > %temp%\$outlook\9')
;2 @s weil sonst von kixtart fuer variable gehalten!!
shell "cmd.exe /c copy %temp%\$outlook\1 + %temp%\$outlook\2 + %temp%\$outlook\3 + %temp%\$outlook\4 + %temp%\$outlook\5 + %temp%\$outlook\6 + %temp%\$outlook\7 + %temp%\$outlook\8 + %temp%\$outlook\9 %temp%\$outlook\alles > %temp%\nil"
shell "cmd.exe /c copy X:\outlook\outlook-konto.reg + %temp%\$outlook\alles %temp%\$outlook\konto_reg.reg > %temp%\nil"
shell "cmd.exe /c regedit /s /q %temp%\$outlook\konto_reg.reg > %temp%\nil"
shell "cmd.exe /c rmdir /s /q %temp%\$outlook >%temp%\nil"
ENDIF