Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 26th, 2007, 11:12 PM   #1
tAK
Programmer
 
Join Date: Mar 2007
Posts: 33
Rep Power: 0 tAK is on a distinguished road
Batch Pipe command - output formatting

Hey guys,

i have a bat script that runs for whenever a user logs in, it outputs information, in what is close to an ini file format (key=value) with 2 exceptions, being the date and time..

it outputs:
Time=
12:45 PM
Date=
Tue 27/03/2007

Any way to get it to output it as:
Time=12:45 PM
Date=Tue 27/03/2007

the code that currently runs:
Code:

ECHO.Time=>>"c:\Output.txt" time /t>>""c:\Output.txt" ECHO.Date=>>"c:\Output.txt" date /t>>"c:\Output.txt"

i was thinking this should work (to produce the requred format) but it outputs the same as before:
Code:

ECHO.Time=>>"c:\Output.txt" | time /t>>""c:\Output.txt" ECHO.Date=>>"c:\Output.txt" | date /t>>"c:\Output.txt"


any help appreciated.

/tAK
tAK is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Question NightShade01 Other Programming Languages 3 Jun 20th, 2006 5:39 PM
Embedding a batch file into a C++ app vynkz C++ 22 May 18th, 2005 8:59 PM
Batch Files Skinner Other Programming Languages 4 Apr 28th, 2005 8:03 AM
MSDOS Batch Desktop arrange dingbat Other Web Development Languages 3 Apr 13th, 2005 5:33 AM
MYSQL, pipe delimited or just spaces? scorpiosage PHP 0 Feb 8th, 2005 3:32 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC