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

Moving files from one dynamic directory to another using batch script
Execute a command with relative path and save the return value of the command in a batch script
insert command into start cmd
How can I split a string into multiple variables in Batch?
How do I check to see if multiple variables are equal to each other in batch files? [closed]
goto was unexpected at this time in my batch file
Batch script to run tomcat server in case of max CPU
Batch script for moving files older then x days from one location to another based on modified date excluding some files
bat file to find and replace commandlines in a .txt
SQL Server Intergration vs BI Intergratoin Services Project [duplicate]
How to make FOR /F tokens work more universal (path related)
Create Folders based on 6th number in file name, create a folder and move file into that folder
Directory with date in batch file
How to call a dynamic label in different .bat file
Batch script rename file
Delayed expansion and exclamation marks in strings

Categories

HOME
beautifulsoup
fabricjs
design-patterns
pyqt
jelastic
composite-primary-key
socket.io
opendj
scripting
parameters
telegram-bot
iis-6
mql5
categorical-data
x-cart
symmetricds
plink
3nf
mongodb-csharp
template-engine
wolframalpha
identity-management
spring-async
short-url
monit
beautifier
surveymonkey
fat
motion-detection
outliers
entity-relationship-model
firebase-analytics
iis-express
postback
memory-address
classcastexception
activexobject
carriage-return
jwplayer6
raft
timing
filesystemwatcher
bc
odroid
metaprogramming
demo
setup.py
escpos
file-sharing
dynamic-linq
robomongo
convex-optimization
magic-draw
context-switch
check-mk
css-transforms
rackspace-cloud
gpg-signature
template-toolkit
javafx-css
appscale
embedding
gcloud-ruby
upx
crouton-os
atan2
phonertc
dock
coda
haskell-warp
cwrsync
ms-access-2000
nsurlsessiondatatask
fits
xmltype
code-documentation
public-html
exceldatareader
apache-spark-1.3
ejb-2.x
execve
beatsmusic
webfinger
genymotion-call
jqmodal
reflector
file-not-found
sphinxql
model-driven-development
cmmi
process-explorer
joomla-template
android-icons
wimax
joomla3.1
patricia-trie
wcf-configuration
predicatebuilder
virtualpathprovider
catransform3d
mbeans
quotation-marks
socketserver
squishit
undefined-index
zend-rest
lobo-cobra
mathematical-notation
todos
localizable.strings
unmanagedresources
dsoframer
wcf-proxy

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile