Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to copy the text info, of a command?  (Read 3466 times)

0 Members and 1 Guest are viewing this topic.

Gary Callis

  • Guest
How to copy the text info, of a command?
« 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.

johnwill

  • Guest
Re: How to copy the text info, of a command?
« Reply #1 on: September 06, 2004, 06:31:52 PM »
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

Gary Callis

  • Guest
Re: How to copy the text info, of a command?
« Reply #2 on: September 06, 2004, 07:14:29 PM »
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.

2k dummy

  • Guest
Re: How to copy the text info, of a command?
« Reply #3 on: September 06, 2004, 08:17:46 PM »
ipconfig/all > path\filename