From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- public/tools/ntstatxx.cmd | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 public/tools/ntstatxx.cmd (limited to 'public/tools/ntstatxx.cmd') diff --git a/public/tools/ntstatxx.cmd b/public/tools/ntstatxx.cmd new file mode 100644 index 000000000..5d6935807 --- /dev/null +++ b/public/tools/ntstatxx.cmd @@ -0,0 +1,39 @@ +if "%_NTSTATXX%" == "CoMp" goto docomp +if "%_NTSTATXX%" == "SaVe" goto dosave +if "%_NTSTATXX%" == "ReSt" goto dorestore +echo This command script is not for general use unless you know +echo what you are doing, in which case you would not being reading +echo this message right now. +goto done +rem ntstatxx sdktools D:\NT\PRIVATE\SDKTOOLS dirs 000 +:dosave +if NOT EXIST %_NTSLMBACKUP%\%1\*. mkdir %_NTSLMBACKUP%\%1 +if NOT "%5" == "" goto dolocalsave +echo Saving %2\%3 to %_NTSLMBACKUP%\%1\%4 +copy %2\%3 %_NTSLMBACKUP%\%1\%4 >nul +goto done +:dolocalsave +if NOT "%_NTSTATXXLOCAL%" == "yes" goto done +echo Saving %2\%3 to %_NTSLMBACKUP%\%1\%4 +if "%5" == "localfile" copy %2\%3 %_NTSLMBACKUP%\%1\%4 >nul +if "%5" == "localdir" xcopy /csehrkid %2\%3 %_NTSLMBACKUP%\%1\%4 >nul +goto done +:dorestore +if NOT "%5" == "" goto dolocalrestore +echo Restoring %2\%3 from %_NTSLMBACKUP%\%1\%4 +copy %_NTSLMBACKUP%\%1\%4 %2\%3 +goto done +:dolocalrestore +goto done +:docomp +if NOT "%5" == "" goto dolocalcomp +if NOT EXIST %_NTDIFFDIR%\%1\*. mkdir %_NTDIFFDIR%\%1 +echo SComping %2\%3 to %_NTDIFFDIR%\%1\%4 +echo %_NTDIFFDIR%\%1\%4 contains scomp for %2\%3 >>%_NTDIFFDIR%\diff.log +pushd %2 +scomp %3 >%_NTDIFFDIR%\%1\%4 2>&1 +popd +goto done +:dolocalcomp +goto done +:done -- cgit v1.2.3