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 Find multiple value from text file to another text file
New to programming, batch file closes after >1 input
How to delete all files (in a directory) whose name starts with certain string?
7zip compress batch for subfolders in Windows
Terminate jar file process through If commands using batch
Get last character of a string from a variable Windows NT batch CMD
Why does findstr display everything on the same line?
batch file getting output on browser instead of cmd line
Windows Batch Nested For options was unexpected error
Batch IF Statement Limit/Issue
Batch-file for running commands in cmd
Execute .bat file automatically via command line getting https error
CMD - How to remove a connection in Network and Sharing Center
batch file rename files in folder
How do you replace a line in a text file containing a specific value (batch)
How do I make a batch file use code from a .txt file?

Categories

HOME
facebook-oauth
deep-learning
spark-streaming
fuelux
pagination
phpmyadmin
graphics
r-googlesheets
yandex
switch-statement
big-o
web-hosting
babeljs
boto3
rcloud
syntaxnet
fabric.io
owin
fhir
android-securityexception
redis-sentinel
radgridview
pybossa
renjin
3nf
magnetic-cards
http-post
screen-readers
azure-powershell
microsoft-dynamics-nav
wolframalpha
systemtime
ember-cli
r-mice
tosca
zxing
froala
licensing
has-and-belongs-to-many
quantlib
bioinformatics
realm-mobile-platform
nsurl
scatter3d
android-gridview
instantiation
installshield-le
mnist
imx6
google-earth-engine
outputcache
android-checkbox
rfc3339
qtranslate
android-testing
type-theory
juice-ui
materialized-path-pattern
redbeard-ios
jodd
cassia
boost-serialization
ascii-art
decimalformat
pypiserver
wiredep
jdi
roadkill-wiki
mod-proxy
wso2greg
dot.js
document-repository
at-job
android-vibration
grails-domain-class
alternate
twitter-bootstrap-rails
websphere-esb
clickbank
android-audiorecord
eclipse-kepler
embedded-fonts
mantle
http-status-code-410
dopostback
panda3d
frameworkelementfactory
qtconcurrent
adobe-media-server
thttpd
listactivity
creole
clrstoredprocedure
timthumb
qglwidget
dot-emacs
message-passing
duplex
lxr
visualj#
flvplayback
cardspace

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile