Computing.Net > Forums > Programming > Batch Script

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 Script

Reply to Message Icon

Name: sarash
Date: May 25, 2007 at 00:50:58 Pacific
OS: XP
CPU/Ram: 1GB
Product: DELL
Comment:

I want to get input as single line from a text file in a Batch script. How do I that ?
For eg.a txt file having list of folder name in a column sorted with time stamp,only difference in this folder name is of date (2007-05-22@11-00PM).



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: May 25, 2007 at 14:02:18 Pacific
Reply:

Hi
Do you mean something like this.

@echo off
type Dirs.txt | find "2007-05-22@11-00PM" >~Tmp.txt
set /p Dirs=<~Tmp.txt
echo "%Dirs%"
del ~Tmp.txt



0
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 Script

batch script to parse filenames www.computing.net/answers/programming/batch-script-to-parse-filenames/15286.html

Batch Script Help Needed www.computing.net/answers/programming/batch-script-help-needed/14475.html

batch script www.computing.net/answers/programming/batch-script/14086.html