Word :    Username :           
 

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.

Sponsored Links
Register or log in to remove.

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.

Reply to Anonymous

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.

Reply to Anonymous

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?

Reply to Anonymous

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?

Reply to Anonymous
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > Batch file in Windows 2000
Go to:

There are 750 identified and unidentified users. To see the list of identified users, Click here.

Please mind

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.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them