batch-file


batch file- exception on first of every month


I have a batch file which deletes last modified record every day. But I want to create condition like it should delete only if last modified date is other than 1st of every month. Below is the code which I'm using to run batch everyday.
#echo off
pushd "E:\Sales"
for /f "eol=: delims=" %%F in ('dir /b /a-d /o-d') do (
if()
del "%%F"
exit /b
)
Thanks in Advance

Related Links

Batch Error In Number Guesser
Moving folder to different location but only looking at first five characters
How to create a GUI using batch or other programming languages
Append output to file: “File not found”
Recursively search sub-folders and delete all files in sub-folders older than 6-months
Bat to run Android_Server from cmd & extra window for port forwarding
Get full and correct path from registry value via batch file
DOS - why can't I run two for loops one after another?
Get and use current folder name inside a batch file
Batch Script to copy base64 encoded image to new text file
cmd batch job create directory not working
Move file from between subfolders under folder level
Program to open multiple programs and change the options and setting?
Pressing “OK” in a dialog from a batch file
Batch Script Doesnt Delete Folders in a Folder .txt File :(
Renaming file ending with MMDDYY.xls

Categories

HOME
uml
asp.net-web-api
embedded
microsoftgraph
oracle12c
string
android-studio-2.2
pyqt
powerpoint
flex
fftw
rom
jquery-ui
python-multithreading
google-admin-sdk
commonjs
endeca
pega
ycsb
cmdb
datastage
frequency-distribution
flash-player
linear-algebra
esoteric-languages
firefox-addon
fileserver
google-content-api
charles
visual-glitch
blade
parcelable
hta
dynamically-generated
froala
tiki-wiki
maze
interbase
stackexchange
ms-access-2003
intersystems-cache
inversion-of-control
sinch
corenlp-server
dotspatial
livelink
playstation-portable
simplecv
hunspell
installscript
modalviewcontroller
sim-toolkit
openalpr
ideascript
sim-card
setup.py
apriori
android-softkeyboard
wmp
android-ibeacon
subclipse
optimizely
pom.xml
builder
filehandle
mathcad
android-instrumentation
renaming
macaulay2
model-associations
ng-grid
tooleap
android-dateutils
lua-telegram-bot
php-socket
uiactionsheet
blitline
custom-errors
linklabel
dllimport
flock
skspritenode
linked-tables
uvc
linkedin-jsapi
mutual-authentication
dsym
multitasking
rfc5322
gwt-openlayers
mbunit
inappsettingskit
tlf
route-provider
facebook-timeline
jquery-1.9
stacky
alice
web-notifications
panda3d
patricia-trie
boost-msm
pyunit
extconf.rb
httponly
cross-database
urlrewriter
xcelsius
jqote
umra
object-database
office-2007
mathematical-notation
cldc
leader

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile