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

what's wrong with the ads api of batch requests?
Display the contents of a .txt in a batch file?
.bat rename files name remove first x characters and last x characters
Check UAC status
Deleting folders present on remote machine using batch file
Append String to file name in dos Syntax Error Need
Referencing all files in a folder and its subfolders of a certain type
How to add quests in Batch RPG [closed]
Skip characters or extract substring from string variable in batch for comparison?
Batch script to make backup folder. only new and modified files
If Exist And Else in batch
batch file : stop a processes
NSIS compiler and parameters
Batch File that updating file with every new file added to a folder
What does =/xyz like expressions for Batch File
Conditional execution (IF, ELSE) NOT WORKING

Categories

HOME
google-spreadsheet
formal-languages
powerpoint
oracle-apex-5
rendering
rds
square
echo
crystal-lang
flume
barcode
okhttp
vimdiff
onedrive-api
docx
atlassian-stash
identity-management
nodemcu
windows-xp
ag
cgbitmapcontext
visual-studio-extensions
zxing
monit
custom-post-type
gpio
bulletphysics
mat
apktool
inversion-of-control
realm-mobile-platform
custom-controls
cognos-bi
testbed
dumpbin
jbutton
git-squash
modalviewcontroller
imx6
navigator
roblox
demo
doc
linqpad
logback-groovy
ssrs-2014
contract
lampp
dotnet-httpclient
tf
manova
custom-font
oracleclient
cubism.js
grails-plugin
adafruit
drawstring
nservicebus5
omniauth-facebook
upx
fink
roadkill-wiki
microsoft-reporting
google-books
ons-api
coda
jsvc
apache-commons-daemon
canvg
aspectj-maven-plugin
jbake
sip-server
jama
template-deduction
verold
ora-00904
dsym
multiautocompletetextview
ecslidingviewcontroller
spring-3
mt4j
gd-graph
gtm-oauth2
script#
actiondispatch
wp7test
http-status-code-410
android-sdk-2.3
android-loadermanager
midlet
saleslogix
stress
gobject-introspection
creole
cgbitmapcontextcreate
w3c-geolocation
ie-compatibility-mode
cfwindow
lxr
filesystemobject
wcf-instancing
mathematical-notation

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