Archived from groups: microsoft.public.win2000.file_system (More info?)
I would like to create a directory using the current date
by using a batch file. Does anyone have any info on the
proper syntax to get this done? Any assistance would be
greatly appreciated. Thanks in advance.
Archived from groups: microsoft.public.win2000.file_system (More info?)
www.google.com would be one place to start. A better place is
http://groups.google.com. You'll find millions of posts with this question.
A common answer is something like:
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set theYear=%%c& set
theMonth=%%b& set theDay=%%a)
mkdir %theYear%-%theMonth%-%theDay%
Ray at work
"Mike" <anonymous@discussions.microsoft.com> wrote in message
news:197d01c426e4$d7a06ab0$a501280a@phx.gbl...
> I would like to create a directory using the current date
> by using a batch file. Does anyone have any info on the
> proper syntax to get this done? Any assistance would be
> greatly appreciated. Thanks in advance.
Archived from groups: microsoft.public.win2000.file_system (More info?)
I think I had the day and month backwards there, if you're in US date
format. (Which I am! Oops.)
Ray at work
"Mike" <anonymous@discussions.microsoft.com> wrote in message
news:197d01c426e4$d7a06ab0$a501280a@phx.gbl...
> I would like to create a directory using the current date
> by using a batch file. Does anyone have any info on the
> proper syntax to get this done? Any assistance would be
> greatly appreciated. Thanks in advance.
Archived from groups: microsoft.public.win2000.file_system (More info?)
If I open a cmd window and run delprof.exe to a network
server, i.e. \\roc08cpa01
\BAT\delprof.exe /q /i /c:\\roc08cts01 it works fine.
However, if I double click on the batch file that contains
the same command it will not run, any suggestions and
explanations as to why this happens? How do I get this to
work in a batch file?
Archived from groups: microsoft.public.win2000.file_system (More info?)
Is delprof in your %path%, or are you launching the batch file from the
directory with delprof.exe? Put PAUSE at the end of your batch file so you
can see what's going on.
Ray at home
<scott.lorenzen@bcbsfl.com> wrote in message
news:209001c42795$384d58e0$a601280a@phx.gbl...
> If I open a cmd window and run delprof.exe to a network
> server, i.e. \\roc08cpa01
> \BAT\delprof.exe /q /i /c:\\roc08cts01 it works fine.
> However, if I double click on the batch file that contains
> the same command it will not run, any suggestions and
> explanations as to why this happens? How do I get this to
> work in a batch file?
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.