@ECHO OFF
ECHO BACKUP_CURRENT_DIR.CMD
ECHO THIS BATCH DOES TAKE BACK UP OF THE CURRENT DIRECTORY
ECHO INTO THE UPPER DIRECTORY WITH A TIME STAMP
ECHO FIND ::pause REPLACE pause TO ENABLE DEBUGGING
ECHO SETTING UP THE CURRENT DIRECTORY
set DirName=%CD%
echo DirName is %DirName%
::pause
:: ECHO ADJUST THE DELIMS=. TO THE CHACHATER OF YOUR PROMPT
:: ADD THE DATE STAMP TO THE DIRECTORY NAME
for /f "delims=. tokens=1,2,3" %%i in ('echo %DATE%') do echo off&echo %%i.%%j.%%k
for /f "delims=. tokens=1,2,3" %%i in ('echo %DATE%') do set DirName=%DirName%.%%i.%%j.%%k
echo DirName is %DirName%
::pause
ECHO TOKENS TELLS WHICH ARE THE WORDS TO SPLIT THE 'echo %time%' command
::ADD THE TIME STAMP TO THE DIRECTORY NAME
for /f "delims=: tokens=1,2,3" %%i in ('echo %time%') do echo off&echo %%i.%%j.%%k
for /f "delims=: tokens=1,2,3" %%i in ('echo %time%') do set DirName=%DirName%.%%i.%%j.%%k
echo DirName is %DirName%
:: pause
ECHO BACKUP CURRENT DIRECTORY RECURSIVELY
xcopy /S /E /Y /I "%CD%" "%DirName%"
ECHO PRESS ENTER TO EXIT
pause
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!