NET USE N: /DELETE /Y
NET USE N: \\192.168.1.24\9020 /USER:bigfan\user thanksB
xcopy “D:\Mail\2017.pst” “N:\Mail\2017-18.pst” /e/d/v/h/r/y/c
ROBOCOPY “C:\Users\work\Documents” “N:\a_work\Documents” /MIR /R:1 /W:1
ROBOCOPY “C:\Users\work\Favorites” “N:\a_work\Favourites” /MIR /R:1 /W:1
ROBOCOPY “C:\Users\work\Pictures” “N:\a_work\Pictures” /MIR /R:1 /W:1
ROBOCOPY “C:\Users\work\Videos” “N:\a_work\Videos” /MIR /R:1 /W:1
ROBOCOPY “C:\Users\work\Music” “N:\a_work\Music” /MIR /R:1 /W:1
ROBOCOPY “C:\Users\work\scripts” “N:\a_work\scripts” /MIR /R:1 /W:1
ROBOCOPY “C:\Users\work\Desktop” “N:\a_work\Desktop” /MIR /R:1 /W:1
ROBOCOPY “D:\Mail2016.pst” “N:\Mail\2016.pst” /E /PURGE /R:1 /W:1
taskkill /im outlook.exe /t
ping 192.168.0.254
“C:\Program Files (x86)\Microsoft Office\Office12\Outlook.exe”
stop shutdown:
shutdown /a
shutdown:
@echo off
echo Your PC will shutdown in 30 seconds! Press CTRL+C to abort.
ping -n 2 127.0.0.1>nul
shutdown /s
Change filename
R:
cd R:
ren “video.flv” “video300%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[1].flv” “video1%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[2].flv” “video2%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[3].flv” “video3%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[4].flv” “video4%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[5].flv” “video5%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[6].flv” “video6%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[7].flv” “video7%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[8].flv” “video8%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[9].flv” “video9%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
ren “video[10].flv” “video10%date:~10%%date:~7,2%%time:~0,2%%time:~3,2%.flv”
Move every 10th item
@echo off
set Counter=0
for %%f in (*.txt) do call :p “%%f”
goto :eof
:p
[the next 3 should be indented]
set /a Counter+=1
set /a X=Counter %% 10
if %X%==0 MOVE %1 C:\Users\work\Desktop\INPUT\OUTPUT
goto :eof