TT (Mk1) Discussion Discussion forum for the Mk1 Audi TT Coupe & Roadster produced from 2000-2006

OT: DOS programming

Thread Tools
 
Search this Thread
 
Old Jan 18, 2002 | 01:00 PM
  #1  
Merou's Avatar
Thread Starter
Member
 
Joined: Nov 2001
Posts: 2,836
Likes: 0
Default OT: DOS programming

I'm sure one of you guys knows how to do this... I'm working on a bat file where at one point I have to append a time flag to a file name. So I have to rename "filename.txt" to "filename.txt.Dyyyymmdd.Thhmmss" (I actually have to insert the letters "D" and "T"). How can I do that? Can I do something like:
set variable=variable & "D" & ...?
Also, is there a command that will return ONLY the hour, the minute, etc?

Thanks in advance to all you programming gurus out there
Reply
Old Jan 18, 2002 | 01:31 PM
  #2  
TTom TTR's Avatar
AudiWorld Super User
 
Joined: Mar 2000
Posts: 3,596
Likes: 50
From: Wake Forest, NC USA
Default Do you mean REAL DOS or Windows Command Line?

If it's windows command line yer ok so far, If it's real DOS that file name won't work at all.

How good are you with command lines? Do you have any other applications hand that would cut off file names?

You'd need to have a batch file that did someting like this:

generate time to a text file (cmd > test.txt)
then ren <filename> < test.txt (*should take contents of text file as rest of text)

There isn't astraight command line tool avail with windows to do this. You'd have to find/make one.
Reply
Old Jan 18, 2002 | 01:34 PM
  #3  
Merou's Avatar
Thread Starter
Member
 
Joined: Nov 2001
Posts: 2,836
Likes: 0
Default Sorry you're right - win cmd line.

Maybe I should just right a small VB program and call it up from the bat...
Thanks for the advice.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
stadtjunge
Pacific Northwest Discussion
8
Apr 15, 2006 12:19 PM
the senator
A4 (B6 Platform) Discussion
17
Jan 7, 2004 07:17 AM
truth
A4 (B5 Platform) Discussion
8
Apr 11, 2001 06:57 PM
amiro
A4 (B5 Platform) Discussion
8
Oct 16, 2000 08:42 PM




All times are GMT -8. The time now is 11:54 AM.

story-0
2027 Audi Q7 and SQ7: Audi Upgraded EVERYTHING!

Slideshow: Everything you need to know about the 2027 Audi Q7 and SQ7

By Michael S. Palmer | 2026-06-09 06:02:56


VIEW MORE
story-1
Audi Unveils Absurdly Cool New Supercar: 10 Things You Need to Know!

Slideshow: Limited to just 499 units, the 987-horsepower halo car signals a new chapter for Audi performance.

By Verdad Gallardo | 2026-06-04 17:37:15


VIEW MORE
story-2
The Highs & Lows of Every Audi C-Class Generation

Slideshow: The highs and lows of every Audi C-Class generation.

By Joe Kucinski | 2026-05-27 16:05:50


VIEW MORE
story-3
Top 10 Most Expensive Audis Ever Sold on Bring-A-Trailer

People were more than happy to shell out big bucks for these cars.

By Brett Foote | 2026-05-27 15:32:23


VIEW MORE
story-4
10 Audi Features & Options We Miss the Most!

Slideshow: 10 Audi features and options we miss the most.

By Joe Kucinski | 2026-05-12 19:33:47


VIEW MORE
story-5
Audi Recreates Crazy-Looking Speed Record Breaker From 1935

Slideshow: Audi has recreated one of the wildest machines of the pre-war speed-record era, reviving a streamlined V16 racer that originally exceeded 200 mph in 1935.

By Verdad Gallardo | 2026-05-11 09:49:34


VIEW MORE
story-6
Coachbuilder Recreates the 1995 Audi TTS Concept

Slideshow: A Dutch coachbuilder has reimagined the original Audi TT by finishing what the 1995 concept only hinted at.

By Verdad Gallardo | 2026-05-05 15:17:58


VIEW MORE
story-7
Every Audi V10 Car Ranked!

Slideshow: Ranking every Audi V10 road car

By Joe Kucinski | 2026-04-29 16:11:56


VIEW MORE
story-8
9 Audi Designs That Aged Like Fine Wine

Slideshow: A look back at the Audis that didn't just survive changing tastes, they quietly outgrew them.

By Verdad Gallardo | 2026-04-28 19:38:27


VIEW MORE
story-9
2026 Audi Q5 Buyer's Guide (Every Model Explained)

One year off a full redesign, the best-selling Q5 is getting a few more updates.

By Brett Foote | 2026-04-17 09:56:19


VIEW MORE