Computing.Net > Forums > Programming > Batch file to edit text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file to edit text file

Reply to Message Icon

Name: BOBDESK
Date: June 7, 2009 at 22:18:18 Pacific
OS: Windows XP
CPU/Ram: athlon 64/2 mb
Subcategory: Batch
Comment:

PROBLEM
1. UNKNOWN SOME EMPLOYEE IS CHANGING THE COMPUTER SYSTEM
CLOCK TO MANIPULATE THE TIME STAMPS
THEN RUNNING ATOMIC CLOCK TO RESET IT

2. I NEED TO CREATE INSTANT RETIREMENT PROGRAM FOR THE EMPLOYEE


MY SOLUTION:
I am creating a text file on the server called
f:\logs\clog.txt

clog.txt has one line orginally
"TIME ADJUST LOG"

I want to create a batch file as follows: (atomic.bat)

Add a line to edit file every time the batch file is run

something like
(hard retrun)
$computername% - %date% - %time% > clog.txt

run the program that the employee thinlks they are runnning

F:\RUN_PROG\ATOMIC\atomic.exe

program must echo nothing to the screen
I will put on each computer after hours

what i think this does is append the computer name with date and time stamp
to the batch file.

Thanks in advance.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch file to edit text file

Create a batch file to edit text file www.computing.net/answers/programming/create-a-batch-file-to-edit-text-file/19035.html

Batch to edit a text file www.computing.net/answers/programming/batch-to-edit-a-text-file/15894.html

batch script to parse text file www.computing.net/answers/programming/batch-script-to-parse-text-file/16793.html