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

Batch Script on 2008 server - If Ping successful then
How can I extract part of a string based on a pattern using Windows CMD?
Saving ANT build results and displaying at end of batch run
How to check java path is set or not to porticular folder if not then set the path using batch file
How to use For loop query
Batch Script to display the filenames with extension (.skc) in mail body or at least put the .skc values in a variable from #file
Batch file to make folders of selected files in directory of the files
Rename files using cmd and allow duplicates file name
How to copy files from a folder tree to a single folder and only the latest files?
Close chrome from bat file
Filter specific Strings in For loop using batch Script
Batch file script lost in translation to exe?
findstr is not including entire string when used in 'for loop' (.bat file). Can anyone help me get whole string?
BATCH if two textfiles are not the same, copy both into new textfile
BATCH FILE BUG IF STRING == STRING
Batch Script to overwrite a file with first 5 lines

Categories

HOME
bitbucket-api
mips
gembox-spreadsheet
azure-container-service
project
commonjs
gson
resultset
line
eip
searchview
mvc-mini-profiler
mapstruct
production
dataflow-diagram
postscript
beautifier
amazon-quicksight
sql-server-2000
android-sugarorm
yowsup
visa
odoo-website
skylink
postgresql-8.4
congestion-control
tcc
berkeley-db-je
double-click
libgphoto2
term
robomongo
user-defined-fields
facebook-pixel
tinymce-3
insight
wpas
appdomain
oracleclient
colorbar
neon
jclouds
freepbx
nss
php-socket
bizagi
turbo-prolog
lz77
maybe
oracle-spatial
microsoft-reporting
toolkit
baasbox
osc
zxspectrum
procedural-programming
at-job
android-vibration
filesplitting
punycode
webfinger
human-computer-interface
tweenlite
insight.database
fpdi
accesscontrolexception
printdialog
gpars
nebula
abstract-data-type
insert-id
cascadingdropdown
redis-py
zope.interface
adobe-media-server
thttpd
wiimote
google-floodlight
automationelement
multiplatform
nhprof
cruisecontrol.rb
addchild
glui
purepdf

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