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

Winrar limit of extractions
Auto Screenshot using VBS
How can I use multiple variables in one string under for /F
FILE NOT FOUND when searching within text file
batch - attach variable to items on a list
Windows 10 Environmental Variable for Documents folder
Batch scripting: read lines and execute a command after every other line read
Input confirmation batch file
Batch file that opens a URL and press CTRL+A in the focused browser
Look for certain file within subdirectories if found do nothing. If not found run command
Spaces In Text Document Name Through Batch User Input
Dynamic Command Generation in Batch
Difficulty using set/endlocal in Batch across files
How to copy the names of the subfolders in a folder, so to use them in a batch program (command line)?
Windows Batch: string with exclamation mark used as parameter to function not parsed correctly
Batch file Start program

Categories

HOME
windows
microsoftgraph
polymer
interface
oracle-apex-5
jsf-2.2
error-handling
can
replace
permissions
special-characters
performancepoint
mod-security
intercom
flash-player
bitnami
esoteric-languages
dynamic-sql
powershell-v5.0
chargify
asp.net-mvc-viewmodel
imessage
charles
sar
undertow
blade
displaytag
xcode-ui-testing
syntax-highlighting
handler
finagle
eviews
livelink
python-2.6
testbed
catch-unit-test
laravel-eloquent
html-encode
slacktextviewcontroller
baidu-map
protege4
sharepoint-workflow
hivemq
bc
metaprogramming
linq-to-objects
kill
strftime
monkey-testing
bluez
trojan
jqchart
check-mk
d3-force-directed
mathcad
restore
reachability
scaffolding
installshield-2010
refinerycms
cassia
ellucian-scribe
aspen
include-guards
binomial-theorem
rdflib
linked-tables
dnssec
j-security-check
actionfilterattribute
theos
android-vibration
pseudo-class
sip-server
contrast
cocos3d
paw
raygun
grails-domain-class
alternate
cfcache
inputmismatchexception
beaker-testing
preload
wimax
pstack
garbage
fusefabric
database-create
wiimote
infobright
agility.js
role
user-tracking
lr
cgbitmapcontextcreate
cruisecontrol.rb
appliance

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