Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Batch file problem

Reply
 
Old 05-02-2009   #1 (permalink)


Vista Ultimate x64
 
 

Batch file problem

Hi, I just created a batch file which does what I need it to perfecly. I just need one other thing in it so that I can keep track of when (date and time) it is run. Is there a command I can use that will be able to post the time and date it was opened everytime it is run, in a folder or better, a text file of my choice?
Thanks

My System SpecsSystem Spec
Old 05-02-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: Batch file problem


"Miltzi" <guest@xxxxxx-email.com> wrote in message
news:cfa70ffdf9c20990528a7829a264ada4@xxxxxx-gateway.com...
Quote:

>
> Hi, I just created a batch file which does what I need it to perfecly. I
> just need one other thing in it so that I can keep track of when (date
> and time) it is run. Is there a command I can use that will be able to
> post the time and date it was opened everytime it is run, in a folder or
> better, a text file of my choice?
> Thanks
>
>
> --
> Miltzi
Sure is - try this:
@echo off
echo %date% %time% %UserName% %ComputerName% >> c:\Miltzi.log
{Your code goes here}


My System SpecsSystem Spec
Old 05-02-2009   #3 (permalink)


Vista Ultimate x64
 
 

Re: Batch file problem

Quote  Quote: Originally Posted by Pegasus [MVP] View Post
"Miltzi" <guest@xxxxxx-email.com> wrote in message
news:cfa70ffdf9c20990528a7829a264ada4@xxxxxx-gateway.com...
Quote:

>
> Hi, I just created a batch file which does what I need it to perfecly. I
> just need one other thing in it so that I can keep track of when (date
> and time) it is run. Is there a command I can use that will be able to
> post the time and date it was opened everytime it is run, in a folder or
> better, a text file of my choice?
> Thanks
>
>
> --
> Miltzi
Sure is - try this:
@echo off
echo %date% %time% %UserName% %ComputerName% >> c:\Miltzi.log
{Your code goes here}


Perfect!!! Thanks so much
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Batch-file not working: PATH-problem? Vista General
vista batch file problem Vista General
batch file help Vista General
Batch file Vista file management
batch file calling exe file problem Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46