command line in XP

  • Thread starter Thread starter Malone
  • Start date Start date
M

Malone

I am trying to use ipconfig from the command line (run in the start menu) and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu) and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu) and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
Hi

That's the method I use for redirecting the output of a command to a file, so:

ipconfig /all > c:\iplog.txt

creates the iplog.txt file in the root folder.

--

Will Denny
MS-MVP Windows - Shell/User


Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu) and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
I don't see /batch as an option for the ipconfig command.

But ipconfig>ipconfig.txt works at a command prompt(not the Run box). Note
no space before or after the "."

Bill Sharpe

Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu)
and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
Hi Malone

Try it from a command prompt, not Start>Run.

--

Will Denny
MS-MVP Windows - Shell/User


Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu) and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
Thanks for all the responses. I've sorted it out. You're right, my mistake was trying to use ipconfig with the redirected output in the run box rather than from a command prompt. But I am still confused why it should work from the run box with Windows 98 but not Windows XP. Must be some subtle difference.....

Malone

Hi Malone

Try it from a command prompt, not Start>Run.

--

Will Denny
MS-MVP Windows - Shell/User


Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu) and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
I believe it is because Windows 98 is built on DOS and XP only has a DOS
emulator, hence the commands must be within the environment. In other
words, you must first open a command prompt.

--
Michael Solomon MS-MVP
Windows Shell/User
Backup is a PC User's Best Friend
DTS-L.Org: http://www.dts-l.org/

Thanks for all the responses. I've sorted it out. You're right, my mistake
was trying to use ipconfig with the redirected output in the run box rather
than from a command prompt. But I am still confused why it should work from
the run box with Windows 98 but not Windows XP. Must be some subtle
difference.....

Malone

Hi Malone

Try it from a command prompt, not Start>Run.

--

Will Denny
MS-MVP Windows - Shell/User


Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run in the start menu)
and direct the output to a text file

I have tried

ipconfig /batch c:\iplog.txt

which works with Windows 98 but doesn't work with XP.

Can anyone explain how I can redirect output to a text file in XP?

tia

Malone
 
I'm just try, and don't have the problem
ipconfig /all > c:\test.txt


-----Original Message-----
Thanks Will, but that doesn't work either

Malone

Hi

Try this

ipconfig /(switches) > c:\iplog.txt

--

Will Denny
MS-MVP Windows - Shell/User


I am trying to use ipconfig from the command line (run
in the start menu) and direct the output to a text file
 
Back
Top