Batch Commands

REM The 3 files will be started simultaniously.
file1.exe | file2.exe | file3.exe

REM This would cause file2.exe to be started after file1.exe closed.
file1.exe
file2.exe
file3.exe

Using the DATE command

echo %date%
Tue 05/08/2014

FOR /F “TOKENS=2-4 DELIMS=/ ” %A IN (‘ECHO.%DATE%’) DO (echo %C%A%B)
20140508

set mydate=%date:~10,4%%date:~7,2%%date:~4,2%
20140805

set /a mydate1=%mydate%-1
20140804

[Win8]

start explorer /n,C:\Users\xxx\AppData\Local\Microsoft\Windows\INetCache

for /f “tokens=* delims=” %%F in (‘dir /ad/s/b C:\Users\xxx\AppData\Local\Microsoft\Windows\INetCache\low\IE’) do attrib -h -s -r -a %%F

for /f “tokens=* delims=” %%F in (‘dir /s/b C:\Users\xxx\AppData\Local\Microsoft\Windows\INetCache\low\IE\*.flv *.mp4’) do dir %%F

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: