Jump to content


Photo

Get network list and put to text file


  • Please log in to reply
2 replies to this topic

#1 Phischi

Phischi
  • Members
  • 5 posts

Posted 01 September 2005 - 10:15 AM

Hi All

Never thought I'd ever post here :wink:


I've tried to run this command:

Run, net view >>%TMP%\netview.txt

What I want to achieve is that a list of all computers in the network environment is written to a text file in the Windows TEMP-folder

Unfortunately it runs "net" only without the command switches
Although removing the ">>%TMP%\netview.txt" works fine, but I cannot extract the output this way :cry:

Any ideas how to solve this?

#2 BoBo

BoBo
  • Guests

Posted 01 September 2005 - 12:03 PM

Run, cmd /c net view >> %TMP%\netview.txt,, Hide

Run, notepad %TMP%\netview.txt,,max


#3 Phischi

Phischi
  • Members
  • 5 posts

Posted 01 September 2005 - 12:05 PM

I should have known this... :roll:

thanks a lot! :lol: