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.
Program output to variable
Name: astroraptor Date: April 28, 2003 at 07:48:44 Pacific OS: Windows 2000 Pro CPU/Ram: 1.6GHz/512Mb
Comment:
Is there a way to output: DIR *.MP3 | FIND /C "MP3"
to a batch variable? I tried it with some code I found on the net but all it can store is one file, so the count is 1 no matter what. Can someone help?
Name: astroraptor Date: April 28, 2003 at 08:58:01 Pacific
Reply:
I answered my own question. I have to use FIND /C "mp3" because the filetype is written in lowercase. It only used to find the directory name "MP3s" before. My program is now nearly flawless! :D
Summary: Hi. Sorry, I couldn't fully understand you. You've got an output and you want to send that output to a variable? It's the hole output or just a string? Please give a clear example of the output, that ...
Summary: I'm talking about programming it in DOS... All I want is to be able to catch the contents of a text file and store it on a variable. For example... If I go.. c:\type joey.txt then that text files co...
Summary: Hi: I am trying to write a dos batch file that will redirect the output of a command to a variable. There really doesn't seem to be a good way of doing this. If anybody has a clue as to how to call ...