Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Reading text from to variable

Original Message
Name: Zangor
Date: March 10, 2005 at 04:51:54 Pacific
Subject: Reading text from to variable
OS: Xp
CPU/Ram: 2800 512mb ram
Comment:
I want to read a textfile and put the content to variable.

/This was the word of Zangor


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: March 10, 2005 at 05:03:37 Pacific
Subject: Reading text from to variable
Reply: (edit)
in DOS or XP?

M2


Report Offensive Follow Up For Removal

Response Number 2
Name: Zangor
Date: March 10, 2005 at 05:48:05 Pacific
Subject: Reading text from to variable
Reply: (edit)
In a bat-file in Dos

/This was the word of Zangor


Report Offensive Follow Up For Removal

Response Number 3
Name: Mechanix2Go
Date: March 10, 2005 at 06:36:40 Pacific
Subject: Reading text from to variable
Reply: (edit)
Is the text file just one line?

What size is the file?

M2


Report Offensive Follow Up For Removal

Response Number 4
Name: Zangor
Date: March 10, 2005 at 08:54:15 Pacific
Subject: Reading text from to variable
Reply: (edit)
the text file is more than one line and i want to get i all out to diferent variables

/This was the word of Zangor


Report Offensive Follow Up For Removal

Response Number 5
Name: jboy
Date: March 10, 2005 at 09:04:26 Pacific
Subject: Reading text from to variable
Reply: (edit)
"in DOS or XP?" means: Are you running DOS, the Operating System, or are you employing the Command Prompt from within WinXP?


Give me ambiguity or give me something else


Report Offensive Follow Up For Removal


Response Number 6
Name: Zangor
Date: March 10, 2005 at 09:06:03 Pacific
Subject: Reading text from to variable
Reply: (edit)
I'm running Xp Command Prompt

/This was the word of Zangor


Report Offensive Follow Up For Removal

Response Number 7
Name: jboy
Date: March 10, 2005 at 09:19:28 Pacific
Subject: Reading text from to variable
Reply: (edit)
I imagine you must have breezed right past this message at the top of the forum:

This forum is for all Standalone versions of DOS, not the "DOS" prompt contained inside later versions of Windows.

As well, there is a somewhat different command set contained in the XP emulation, so what works in true DOS may not work under XP's 'extended DOS', or there may be better options unique to that environment

Give me ambiguity or give me something else


Report Offensive Follow Up For Removal

Response Number 8
Name: dtech10
Date: March 12, 2005 at 08:51:07 Pacific
Subject: Reading text from to variable
Reply: (edit)
Hi
Is it ok to help Zanger here even if is is the wrong forum or is this frowned upon.
Thanks DTech10





Report Offensive Follow Up For Removal

Response Number 9
Name: Mechanix2Go
Date: March 12, 2005 at 08:54:44 Pacific
Subject: Reading text from to variable
Reply: (edit)
Hi dtech10,

Doesn't bother me.

I'd always rather help than bitch somebody out.

A couple guys who repond here are on the verge of a mental breakdown.

M2


Report Offensive Follow Up For Removal

Response Number 10
Name: jboy
Date: March 12, 2005 at 11:16:31 Pacific
Subject: Reading text from to variable
Reply: (edit)
If you can help, that's fine. It is in the poster's best interest to specify just what version of DOS (or "DOS") pertains to the actual question, as the answers may well be different. As you can tell from this post, even asking point blank wasn't enough.

It's also in the poster's best interest to choose the appropriate forum. If someone posted a Linux or Mac question here, what would be the response? Would someone try and answer it, or would reposting in a more relevant forum be suggested?

I just find it completely weird that folks running Windows post in the DOS forum - - seems like a kind of mental disconnect

Give me ambiguity or give me something else


Report Offensive Follow Up For Removal

Response Number 11
Name: Mechanix2Go
Date: March 12, 2005 at 11:37:33 Pacific
Subject: Reading text from to variable
Reply: (edit)
Hi Zanger,

This should work with lines containing up to 9 'words'.

::==
set varNUM=0

for /f "tokens=*" %%T in (some.txt) do call :varSET %%T

goto :eof

:VarSET

set /a varNUM=%varNUM%+1

set MYvar%varNUM%=%1 %2 %3 %4 %5 %6 %7 %8 %9
::==

HTH

M2


Report Offensive Follow Up For Removal

Response Number 12
Name: Mechanix2Go
Date: March 28, 2005 at 07:57:27 Pacific
Subject: Reading text from to variable
Reply: (edit)
Once again, as in the Zen tradition, a thunderous silence.


M2

If at first you don't succeed, you're about average.


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Reading text from to variable

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12

help mandriva install last straw!

Icon Scaling in Explorer Bar


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC