Click here to Skip to main content
15,924,452 members
Home / Discussions / System Admin
   

System Admin

 
AnswerRe: scan workstation for illegal software? Pin
Vasudevan Deepak Kumar1-Sep-07 23:21
Vasudevan Deepak Kumar1-Sep-07 23:21 
QuestionUpdate problem Pin
nkjha130-Aug-07 22:26
nkjha130-Aug-07 22:26 
AnswerRe: Update problem Pin
Saksida Bojan1-Sep-07 22:22
Saksida Bojan1-Sep-07 22:22 
AnswerRe: Update problem Pin
Vasudevan Deepak Kumar1-Sep-07 23:13
Vasudevan Deepak Kumar1-Sep-07 23:13 
Questionlogfile monitor - tools? batch script? Pin
devvvy28-Aug-07 18:09
devvvy28-Aug-07 18:09 
AnswerRe: logfile monitor - tools? batch script? Pin
Vasudevan Deepak Kumar2-Sep-07 0:10
Vasudevan Deepak Kumar2-Sep-07 0:10 
Questionxcopy and timestamp - how to compute "Yesterday"? Pin
devvvy28-Aug-07 14:44
devvvy28-Aug-07 14:44 
AnswerRe: xcopy and timestamp - how to compute "Yesterday"? Pin
Spacix One28-Aug-07 15:06
Spacix One28-Aug-07 15:06 
Wow that is long as you said I found this our "examples" on our dev server at work and I don't remember where it is from...
for /f "tokens=2" %%g in ('date /t') do set datesplit=%%g

set mm=%datesplit:~0,2%
set dd=%datesplit:~3,2%
set yyyy=%datesplit:~6,4%

echo %mm%
echo %dd%
echo %yyyy%

set /A dd=%dd% - 1
set /A mm=%mm% + 0

if /I %dd% GTR 0 goto FINISH
set /A mm=%mm% - 1
if /I %mm% GTR 0 goto ADJUST
set /A mm=12
set /A yyyy=%yyyy% - 1

:ADJUST
if %mm%==1 goto SET31
if %mm%==2 goto LEAPCHK
if %mm%==3 goto SET31
if %mm%==4 goto SET30
if %mm%==5 goto SET31
if %mm%==6 goto SET30
if %mm%==7 goto SET31
if %mm%==8 goto SET31
if %mm%==9 goto SET30
if %mm%==10 goto SET31
if %mm%==11 goto SET30
if %mm%==12 goto SET31
goto ERROR

:SET31
set /A dd=31 + %dd%
goto FINISH

:SET30
set /A dd=30 + %dd%
goto FINISH

:LEAPCHK
set /A tt=%yyyy% %% 4
if not %tt%==0 goto SET28
set /A tt=%yyyy% %% 100
if not %tt%==0 goto SET29
set /A tt=%yyyy% %% 400
if %tt%==0 goto SET29

:SET28
set /A dd=28 + %dd%
goto FINISH

:SET29
set /A dd=29 + %dd%

:FINISH
if /i %dd% LSS 10 set dd=0%dd%
if /I %mm% LSS 10 set mm=0%mm%

rem here you can format how you like, from above it should be
set YESTERDAY=%mm%-%dd%-%yyyy%
echo %YESTERDAY%

GeneralRe: xcopy and timestamp - how to compute "Yesterday"? Pin
devvvy28-Aug-07 15:20
devvvy28-Aug-07 15:20 
GeneralRe: xcopy and timestamp - how to compute "Yesterday"? Pin
Vasudevan Deepak Kumar2-Sep-07 0:11
Vasudevan Deepak Kumar2-Sep-07 0:11 
Questiondos script - killing process Pin
bryce27-Aug-07 19:43
bryce27-Aug-07 19:43 
AnswerRe: dos script - killing process Pin
Sebastian Schneider28-Aug-07 3:31
Sebastian Schneider28-Aug-07 3:31 
AnswerRe: dos script - killing process Pin
Mike Dimmick28-Aug-07 9:58
Mike Dimmick28-Aug-07 9:58 
QuestionMultiple Skype Pin
nkjha124-Aug-07 2:37
nkjha124-Aug-07 2:37 
AnswerRe: Multiple Skype Pin
Dave Kreskowiak24-Aug-07 6:56
mveDave Kreskowiak24-Aug-07 6:56 
AnswerRe: Multiple Skype Pin
Jerry Hammond25-Aug-07 19:44
Jerry Hammond25-Aug-07 19:44 
Question0x7c883f9c Pin
Mogtabam24-Aug-07 1:10
Mogtabam24-Aug-07 1:10 
AnswerRe: 0x7c883f9c Pin
Colin Angus Mackay24-Aug-07 2:09
Colin Angus Mackay24-Aug-07 2:09 
AnswerRe: 0x7c883f9c Pin
Dave Kreskowiak24-Aug-07 6:49
mveDave Kreskowiak24-Aug-07 6:49 
AnswerI like this one better Pin
Jerry Hammond25-Aug-07 3:56
Jerry Hammond25-Aug-07 3:56 
JokeRe: 0x7c883f9c Pin
Russell'27-Aug-07 3:55
Russell'27-Aug-07 3:55 
AnswerRe: 0x7c883f9c Pin
Mike Dimmick28-Aug-07 10:13
Mike Dimmick28-Aug-07 10:13 
AnswerRe: 0x7c883f9c Pin
Vasudevan Deepak Kumar1-Sep-07 23:19
Vasudevan Deepak Kumar1-Sep-07 23:19 
QuestionWindows Pin
messages23-Aug-07 22:22
messages23-Aug-07 22:22 
AnswerRe: Windows Pin
Johpoke23-Aug-07 23:55
Johpoke23-Aug-07 23:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.