Computing.Net > Forums > Disk Operating System > Program output to variable

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

Reply to Message Icon

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?



Sponsored Link
Ads by Google

Response Number 1
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


0
Reply to Message Icon

Related Posts

See More


DOS 6.2 on P4 or Athlon X... Config.Sys. EMM386



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Program output to variable

Command output to variable www.computing.net/answers/dos/command-output-to-variable/7847.html

Assigning values to variables (Please help) www.computing.net/answers/dos/assigning-values-to-variables-please-help/3851.html

Redirection of command output to variabl www.computing.net/answers/dos/redirection-of-command-output-to-variabl/8744.html