|
-
October 13th, 1998, 04:31 PM
#1
Using system-date in batch-files
The following batch-file works okay in Win95 - but fails in NT:
REM MSDOS Batch file to get system date/time then run Real Encoder
@echo off
REM First read date/time into variables
ver | date > %temp%gd.bat
echo set logday=%%3 >current.bat
echo set logdate=%%4 >>current.bat
call %temp%gd
ver | time>%temp%gd.bat
echo set logtime=%%3 >current.bat
call %temp%gd
del %temp%gd.bat>nul
del current.bat>nul
REM Now we start the Real Encoder
RVBatch RVEncode.exe /O c:\real\publisher\dateline.rm /L /A 28_8.0 /D 000:01:00 /T "28_8.0" /U "http://www.channelafrica.org" /C Recorded %logday% %logdate% at %logtime% (GMT +2) /P 1 /R 1 /Y 0
My "programming skills" ar not enough for me to understand the problem!
Is there a better way?? Any help gratefully recieved..
Many Thanks
Richard King Johannesburg
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|