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

How to pipe specific cmd output line to another batch?
How do I execute a batch command on multiple files if they're in a different directory than the batch?
How to call a .txt file and find multiple strings of .txt file from a folder or directory using batch script
batch write reg file fails with “The system cannot find the file specified”
Error with robocopy in batch file
how do I use scp command in my batch file
Assign the number of rows in a file to a variable in a batch file
Batch script for loop with prefix
File not getting created in .bat via c# code
server service path in bat file
Batch file scripting playing with the directories
How to open a link with CMD
Archiving files in directory with 7zip command into single zips [closed]
Batch for creating a txt file with the filename for each file
Batch File: Assign Variable to Each Sub Directory.
how to copy and paste file into folder using batch

Categories

HOME
design-patterns
android-studio-2.2
nunit
swt
nuget
database-normalization
3d-reconstruction
tail
android-json
nstableheaderview
joomla3.0
extjs4.2
sendgrid-api-v3
google-schemas
linear-algebra
event-sourcing
scsi
smartclient
shortest-path
cfml
topology
selinux
flask-sqlalchemy
highstock
mount
tiki-wiki
inversion-of-control
jmockit
angularjs-material
joomla2.5
reactjs.net
pop3
yowsup
sharepoint-workflow
cd
timing
xdocreport
android-softkeyboard
optimizely
builder
fclose
edit
sundials
mathcad
baidu
gets
cubism.js
meteor-packages
redistributable
adafruit
windows-azure-queues
rspec2
drawstring
jboss-tools
cifilter
clipboard.js
hadoop-partitioning
beanstalk
piracy-prevention
sciruby
include-guards
ons-api
zen-cart
page.js
slash
sony-lifelog-api
uncompress
dulwich
pyobjc
dot.js
xmltype
code-documentation
ssis-data-flow
post-commit-hook
spy++
tweenlite
ignite-ui
cuba
jjaql
memset
renderer
menubar
clickbank
jammer
traceability
resource-management
intersect
qtconcurrent
dajaxice
wiimote
box2d-iphone
filemerge
jqote
rmdir
photolibrary
load-time
information-management
pnrp

Resources

Encrypt Message