Computer Hope
Microsoft => Microsoft DOS => Topic started by: Gary Callis on September 06, 2004, 05:29:31 PM
-
I am trying to store the information that is listed after a DOS command. Or could I send the information to a location, (i.e. “Word pad” or “clip board”) for future reference? So, what step by step would do this? I am doing this on “Win 98 SE”. I do not remember the version of “DOS” I am using. Thanks.
-
If you're in a batch file, you use parameters. For instance, if you wanted to run DIR and save the directory specification in an environment variable...
<contents of test.bat>
dir %1
set PARAMETER=%1
To invoke the batch job, an example is:
TEST C:\TEMP
When it runs, PARAMETER in the environment will contain C:\TEMP
-
I tried what you recommended. However, that did not seem to work. What I am trying to save is the information from the following command, “ipconfig/all”. I am trying to configure my router to my laptop and desktop. Therefore, I would like to save the information to a file for further review. Maybe I just did not type the command just so. Thanks again.
-
ipconfig/all > path\filename