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.
Execute output from a dir command
Name: squares Date: January 10, 2008 at 00:23:53 Pacific OS: Windows XP CPU/Ram: Unsure
Comment:
Hello, I'm looking for a way to execute the output of a program. For example I have a folder full of files named in various formats, but with a particular single digit, then two more digits later in the name. If I were to use dir /b *2*15* to find a particular file, how would I run it using it's filename extension (assuming we do not already know the extension.) I thought this would work, but it doesn't: dir /b *2*15* > Typing the filename with it's extension works ordinarily, the extension is associated properly.
Thank you all very much for any time you can spend helping me with this.
Summary: bird - he didn't say that it didn't work, he said that he can't see the output. I supposed if you are writing a console type program that has stdout, you'll see it, but if you are writing a windows pr...
Summary: Hi I want to make a batch file that creates variables by parsing a .txt file made from a "dir /b /n > dirlist.txt" command. Each line in the .txt file is a single filename. I need each line/filename ...
Summary: Is there a way to import the output from a dos program into a windows program in c++? I want to be able to show the status of the running program that is using dos but am not sure how to port it into ...