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 file: run command in a cmd.exe launched as a different user using batch file
How to move the Last Modified file in a folder to another folder
Batch - Create Folders with one changing variable
.bat Works in NT-based Windows But Not DOS or 9x?
Search filename with variable and replace different variable text in another file with multiple lines
How do I check for duplicates in a large txt file in batch?
Grab variable wihin a line of text that contains constants and other variables
Find a substring (filepath) from a string containing variable order arguments
Batch file goto not working in for loop
How can you open a non-specific file using a program called through a batch file?
Batch file: sorting folders and files alphabetically
Run .bat script on server start up and keep console
Set output of a command as a variable (with pipes)
Batch sendemail automatically without clicking send
Batch File to restart the service after reading value
Reading From a Text File and Executing What You Find

Categories

HOME
batch-file
sonarqube
embedded
turing-machines
github-for-windows
ecmascript-6
formal-languages
pda
angular2-material
rsa
mysql-workbench
hessian
mstest
socket.io
opendj
onclick
polling
jquery-ui
joomla3.0
why3
datastage
google-form
symfony-2.8
null-pointer
mvc-mini-profiler
identity-management
symfony-console
nodemcu
exploit
tosca
siri
syntax-highlighting
fable-f#
bulletphysics
android-maps
inversion-of-control
android-things
paperjs
uitapgesturerecognizer
realm-mobile-platform
magento-1.8
send
mobx
anki
mockjax
android-sugarorm
latitude-longitude
docfx
news
escpos
libgphoto2
serde
mschart
netbeans6.8
bluez
spring-data-couchbase
dt
pocketsphinx-android
cvxpy
hadoop-2.7.2
ziparchive
winusb
preprocessor
xcode-server
jboss-tools
ng-grid
appscale
clipboard.js
libvlc
microsoft-reporting
sapscript
lasso
graphics2d
snoop
nutiteq
git-ftp
mraid
kubuntu
zxspectrum
public-html
grouping-sets
rapidsvn
punycode
cocos3d
create.js
ray
decoupling
synapse
windows-embedded-standard
away3d
dolby-audio-api
onload-event
http-status-code-410
resource-management
idn
jquery-blockui
iboutlet
correlated-subquery
thttpd
fusefabric
u2netdk
drawtobitmap
clrstoredprocedure
request-headers
feasibility
leader

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