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

Making a few changes to network script
Why wont this basic command even open
Batch: Delete command only for the specified file
SSIS - Create Batch File to Run Package
Having some trouble with a fun batch file
How to check if an Excel spreadsheet is running, use it in an if command and run the sheet if it isn't already running
Variable was unexpected at this time
Searching for files in a directory and sub-directories and editing specific lines within those files
Batch IF doesn't work
Mass Copy and Rename files into same respective directories (CLI/PowerShell)
Batch command to run something when I close the program
bat file to delete files using path from argument
How to transfer files from Remote Desktop connection?
How to remove all text in a line before and including an equals operator in Windows batch
Getting A Custom Random Number
Scheduled Folder Cleanup - Batch File

Categories

HOME
batch-file
sonarqube
search
azure-stream-analytics
oracle12c
api
forms
amp-html
pagination
rdbms
formal-languages
grafana
replace
telegram-bot
polling
pkcs#11
performancepoint
qpython
augeas
heap
java.util.logging
speech-synthesis
intercom
cumulocity
internationalization
microsoft-dynamics-nav
mathprog
easyphp
asp.net-mvc-viewmodel
sse
bourbon
drive
pylons
has-and-belongs-to-many
genexus-sd
angular-translate
winpe
salesforce-communities
playframework-2.1
sessionstorage
xdocreport
sim-card
odroid
ods
google-data-api
mcustomscrollbar
watchface
datacachefactory
parser-generator
dbnull
print-css
angular-http
fclose
datamaps
pdf-conversion
oozie-coordinator
payload
polyline
cvxpy
slackware
qtplugin
segment-io
mta
rspec2
firebase-security
mediametadataretriever
cda
opl
dynatree
java-money
avisynth
poppler
text-search
sapscript
iced-coffeescript
finalbuilder
keyup
node-serialport
zend-currency
rrule
mass-assignment
infosphere-spl
rapidsvn
packet-sniffers
sonarqube-5.0
xml-namespaces
radiant
fpdi
dsym
websphere-esb
square-bracket
clickbank
koala
gwt-openlayers
solace-mq
http-patch
cnf
abstract-data-type
pagedown
chart-director
preload
redis-py
mkv
cdonts
socketserver
twitterizer
delimited-text
purepdf
cuda.net
google-wave
interop-domino
int64
change-management

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