PC Review


Reply
 
 
=?Utf-8?B?Sm9obg==?=
Guest
Posts: n/a
 
      28th Mar 2005
add this to the top of your batch file.
to set file name to date- %xdate%.log
to set file name to time- %xtime%.log
to set file name to time and date- %xtime%%xdate%.log
ex.date= 03-23-2005.log
ex.time= 16.30.log
ex.time & date= 16.30 03-23-2005.log

------------------------------------------------------------------------------------------------
@echo off
setlocal
for /f "tokens=2-4 delims=/ " %%a in (
'date /t'
) do set xdate=%%a-%%b-%%c
for /f "tokens=5-6 delims=:. " %%a in (
'echo/^|time^|find "current"'
) do set xtime=%%a.%%b
cl
------------------------------------------------------------------------------------------------

hope this helps. let me know if you have any problems...

Thanks for the reply from Royce.

Can you please advise me my file is going to created by the time daily 1.00
am.
my file location is: F:\Logs\WWWLogs\W3SVC1\ex030527.LOG.

I am going to move this file from here to another location using XCOPY.

What points should i take care of, thanks for all.

John
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Um95Y2U=?=
Guest
Posts: n/a
 
      28th Mar 2005
john not exactly sure what your question is.... so your going to move the
file from one location to another using xcopy? why couldnt you just make the
log in the correct location the first time... im not very clear on all of
this. is there something that im missing?


"John" wrote:

> add this to the top of your batch file.
> to set file name to date- %xdate%.log
> to set file name to time- %xtime%.log
> to set file name to time and date- %xtime%%xdate%.log
> ex.date= 03-23-2005.log
> ex.time= 16.30.log
> ex.time & date= 16.30 03-23-2005.log
>
> ------------------------------------------------------------------------------------------------
> @echo off
> setlocal
> for /f "tokens=2-4 delims=/ " %%a in (
> 'date /t'
> ) do set xdate=%%a-%%b-%%c
> for /f "tokens=5-6 delims=:. " %%a in (
> 'echo/^|time^|find "current"'
> ) do set xtime=%%a.%%b
> cls
> ------------------------------------------------------------------------------------------------
>
> hope this helps. let me know if you have any problems...
>
> Thanks for the reply from Royce.
>
> Can you please advise me my file is going to created by the time daily 1.00
> am.
> my file location is: F:\Logs\WWWLogs\W3SVC1\ex030527.LOG.
>
> I am going to move this file from here to another location using XCOPY.
>
> What points should i take care of, thanks for all.
>
> John

 
Reply With Quote
 
=?Utf-8?B?Sm9obg==?=
Guest
Posts: n/a
 
      29th Mar 2005
i mean i am copiying the log file into another server Royce. thats why i am
using XCOPY.

thank you very much for yoru help.

can you please help me in this scenario.

"Royce" wrote:

> john not exactly sure what your question is.... so your going to move the
> file from one location to another using xcopy? why couldnt you just make the
> log in the correct location the first time... im not very clear on all of
> this. is there something that im missing?
>
>
> "John" wrote:
>
> > add this to the top of your batch file.
> > to set file name to date- %xdate%.log
> > to set file name to time- %xtime%.log
> > to set file name to time and date- %xtime%%xdate%.log
> > ex.date= 03-23-2005.log
> > ex.time= 16.30.log
> > ex.time & date= 16.30 03-23-2005.log
> >
> > ------------------------------------------------------------------------------------------------
> > @echo off
> > setlocal
> > for /f "tokens=2-4 delims=/ " %%a in (
> > 'date /t'
> > ) do set xdate=%%a-%%b-%%c
> > for /f "tokens=5-6 delims=:. " %%a in (
> > 'echo/^|time^|find "current"'
> > ) do set xtime=%%a.%%b
> > cls
> > ------------------------------------------------------------------------------------------------
> >
> > hope this helps. let me know if you have any problems...
> >
> > Thanks for the reply from Royce.
> >
> > Can you please advise me my file is going to created by the time daily 1.00
> > am.
> > my file location is: F:\Logs\WWWLogs\W3SVC1\ex030527.LOG.
> >
> > I am going to move this file from here to another location using XCOPY.
> >
> > What points should i take care of, thanks for all.
> >
> > John

 
Reply With Quote
 
=?Utf-8?B?Um95Y2U=?=
Guest
Posts: n/a
 
      29th Mar 2005
do you want the log(s) to be on both servers? can you post a copy of your
batch or what you have so far?

"John" wrote:

> i mean i am copiying the log file into another server Royce. thats why i am
> using XCOPY.
>
> thank you very much for yoru help.
>
> can you please help me in this scenario.
>
> "Royce" wrote:
>
> > john not exactly sure what your question is.... so your going to move the
> > file from one location to another using xcopy? why couldnt you just make the
> > log in the correct location the first time... im not very clear on all of
> > this. is there something that im missing?
> >
> >
> > "John" wrote:
> >
> > > add this to the top of your batch file.
> > > to set file name to date- %xdate%.log
> > > to set file name to time- %xtime%.log
> > > to set file name to time and date- %xtime%%xdate%.log
> > > ex.date= 03-23-2005.log
> > > ex.time= 16.30.log
> > > ex.time & date= 16.30 03-23-2005.log
> > >
> > > ------------------------------------------------------------------------------------------------
> > > @echo off
> > > setlocal
> > > for /f "tokens=2-4 delims=/ " %%a in (
> > > 'date /t'
> > > ) do set xdate=%%a-%%b-%%c
> > > for /f "tokens=5-6 delims=:. " %%a in (
> > > 'echo/^|time^|find "current"'
> > > ) do set xtime=%%a.%%b
> > > cls
> > > ------------------------------------------------------------------------------------------------
> > >
> > > hope this helps. let me know if you have any problems...
> > >
> > > Thanks for the reply from Royce.
> > >
> > > Can you please advise me my file is going to created by the time daily 1.00
> > > am.
> > > my file location is: F:\Logs\WWWLogs\W3SVC1\ex030527.LOG.
> > >
> > > I am going to move this file from here to another location using XCOPY.
> > >
> > > What points should i take care of, thanks for all.
> > >
> > > John

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
subject windows Vista Event Logs access through WMI ( Applications and Services Logs) beeess Windows Vista Networking 0 17th Apr 2007 08:02 PM
windows Vista Event Logs access through WMI ( Applications and Services Logs) beeess Windows Vista General Discussion 0 17th Apr 2007 08:00 PM
HTTP Logs =?Utf-8?B?Sm9obg==?= Microsoft Windows 2000 1 23rd Mar 2005 11:31 PM
Windows XP Home logs on then logs of real quick JordonL Windows XP Basics 1 7th Jun 2004 11:41 PM
Can't browse to http://localhost, http://127.0.0.1, http://computer_name anymore BRIAN DUFF Windows XP Networking 0 16th Jan 2004 06:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:41 PM.