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

I want to use a symbol as a start and end marker of a variable
Batch script - copy hidden jpeg files from whole computer
Proper way to set JAVA_OPTS that contains spaces in standalone.conf.bat in WildFly 8?
Only get IPv4 address without the “IPv4 Address. . . . . . . . . . . :” in bat-file
How to create a variable that is set based on a text files contents (batch file)
batch scripting to compare and move files in a folder to another based on a part of source file name
I need a batch or a command line to restart the ''process<name>'' 2 minutes after the process is over
Trouble with batch file executing an EXE
Is it possible to 'split' the value of a set /p command in cmd?
Read file contents into batch variable?
Batch - Commenting on YouTube [on hold]
How to automatically close command prompt when my ''Tool.bat'' has no activity anymore in cmd.exe
How to run another batch script with different privilege?
8 Variables in one line (Batch)
Using a batch file to count and copy nth file to new directory, multiple passes
SQLLDR command Error .Dat file not found

Categories

HOME
shell
checkstyle
knitr
google-cloud-functions
spring-data-mongodb
rom
vxml
web-hosting
visual-studio-emulator
ado.net
settings
angularfire2
syntaxnet
alamofire
supervisor
nancy
cumulocity
coin3d
keytool
feathersjs
chargify
google-data-studio
digital-signature
connector
symbols
jquery-ias
gulp-watch
inno-download-plugin
pchart
jasmine-node
oculus
realm-mobile-platform
ntp
eviews
mustache
cart
android-sugarorm
jett
fiware-cygnus
xcode7.3
bc
recurrent-neural-network
opensmpp
tasm
azure-arm
attributeerror
claims
xbmc
serde
custom-font
boxing
offline.js
bootstrap-tags-input
javafx-css
segment-io
flex4.6
avspeechsynthesizer
appscale
database-relations
crouton-os
dynatree
gocql
dllimport
ansi
cryptographichashfunction
viewer
spy++
appserver
genymotion-call
with-statement
ss7
malformedurlexception
dsym
synapse
gtm-oauth2
embedded-fonts
printdialog
observium
mantle
server-administration
resource-management
pyunit
correlated-subquery
pinch
pylucene
objective-j
vs-android
application-verifier
cuda.net
sun
linfu-dynamicproxy
movieplayer

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