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

cmd batch need counter to assign unique number to list of files
cmd script with sqlplus not returning any results
How do I call concat : %variable% when the variable has internal spaces?
Can a Batch for loop have an increasing step value?
Batch file to find file, and copy paste it to another location
Batch copying all files without overwriting
How to log output of unfinished / non-responding / hanging command in win7?
Batch file checking firefox is open?
Get the file name from a full or relative path knowing that this one is not a parameter of the batch
How to have a batch file echo an alert if a chosen file is updated while the batch is running?
how to start compass using a batch file
Adding two numbers together in a for loop
Have a .bat autorun when a .exe is called
Batch delete files recursively in folder containing some specific text
Batch script to open text file
Move files from one folder to another folder having the same hierarchy and folder name using batch scripting?

Categories

HOME
sonarqube
django
phantom-dsl
fuelux
time-complexity
merge
webdriver
pagination
powerpoint
hessian
requirements
google-apps
dojo
nested-if
echo
mapbox
nfs
performancepoint
arangodb
32bit-64bit
little-proxy
google-chrome-app
plist
siddhi
datastage
automatic-ref-counting
selenium-ide
renjin
eip
coin3d
event-sourcing
symfony-2.8
microsoft-dynamics-nav
delphi-xe5
charles
imageresizer
event-store
roundup
mount
fat
angularjs-components
entity-relationship-model
soot
scatter3d
python-2.6
dynamic-jasper
html-encode
servicestack-text
apiary.io
amazon-ses
vmware-fusion
android-softkeyboard
claims
vaadin-charts
strftime
rfc3339
facebook-social-plugins
automapper-5
yii2-api
mongotemplate
lightning
java-bytecode-asm
boxing
yii2-user
git-flow
rackspace-cloud
structuremap4
gets
cronexpression
cubism.js
flex4.6
drawstring
tooleap
cifilter
query-by-example
data-protection
turbo-prolog
database-relations
nullable
cycle2
inf
dynatree
themoviedb-api
oracle-spatial
ess
pax-exam
snoop
umlgraph
java-security
grouping-sets
exceldatareader
cosine-similarity
ghcjs
big-ip
jqmodal
codeplex
vsx
printdialog
video-codecs
alice
intersect
joomla3.1
jquery-blockui
boost-msm
zope.interface
failing-tests
box2d-iphone
denied
umra
msr
pos-for-.net
blender-2.49
qtabbar
wordprocessingml
cuda.net
httpcookie

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App