- May
- 7
- 0
Hello,
I have since many years a batch file with be.exe, which make every weekday a separate backup of my outlook.pst. I now switched to a 64bit system and my script doesn't run anymore.
I would be very glad, if someone can help me to translate my script to TCC.
Her is the old script:
------
%windir%\system32\be.exe delay 100
%windir%\system32\be.exe WEEKDAY /Debug
if errorlevel 7 goto Sa
if errorlevel 6 goto Fr
if errorlevel 5 goto Do
if errorlevel 4 goto Mi
if errorlevel 3 goto Di
if errorlevel 2 goto Mo
if errorlevel 1 goto So
echo Copy Error
pause
goto ende
:Mo
set weekday=Mo
goto weiter
:Di
set weekday=Di
goto weiter
:Mi
set weekday=Mi
goto weiter
:Do
set weekday=Do
goto weiter
:Fr
set weekday=Fr
goto weiter
:Sa
set weekday=Sa
goto weiter
:So
set weekday=So
goto weiter
:weiter
rd "h:\!outlook\%weekday%" /S /Q
md h:\!outlook\%weekday%
md h:\!outlook\%weekday%\moony
copy "%systemdrive%\Dokumente und Einstellungen\%username%\Lokale Einstellungen\Anwendungsdaten\Microsoft\Outlook\o*.*" "h:\!outlook\%weekday%\"
--------------
Greeting
summergames
I have since many years a batch file with be.exe, which make every weekday a separate backup of my outlook.pst. I now switched to a 64bit system and my script doesn't run anymore.
I would be very glad, if someone can help me to translate my script to TCC.
Her is the old script:
------
%windir%\system32\be.exe delay 100
%windir%\system32\be.exe WEEKDAY /Debug
if errorlevel 7 goto Sa
if errorlevel 6 goto Fr
if errorlevel 5 goto Do
if errorlevel 4 goto Mi
if errorlevel 3 goto Di
if errorlevel 2 goto Mo
if errorlevel 1 goto So
echo Copy Error
pause
goto ende
:Mo
set weekday=Mo
goto weiter
:Di
set weekday=Di
goto weiter
:Mi
set weekday=Mi
goto weiter
:Do
set weekday=Do
goto weiter
:Fr
set weekday=Fr
goto weiter
:Sa
set weekday=Sa
goto weiter
:So
set weekday=So
goto weiter
:weiter
rd "h:\!outlook\%weekday%" /S /Q
md h:\!outlook\%weekday%
md h:\!outlook\%weekday%\moony
copy "%systemdrive%\Dokumente und Einstellungen\%username%\Lokale Einstellungen\Anwendungsdaten\Microsoft\Outlook\o*.*" "h:\!outlook\%weekday%\"
--------------
Greeting
summergames