Go Back   Overclock3D Forums > [OC3D] Hardware & Software > Software Section
Reply
 
Thread Tools Display Modes
 
  #1  
Old 13-03-07, 04:11 PM
Rastalovich's Avatar
Rastalovich Rastalovich is offline
OC3D Elite
 
Join Date: Aug 2006
Location: Testing hardware somewhere
Posts: 11,418
WinXP`s Dos - Q. for gurus

A question for all of yall in the know. (no Amiga networked to these servers, so I got no easy solution at hand ) AmigaDOS had an embedded statement that in it`s concept had copyright Microsoft - I`m afraid that has to be a lie. I can do this with consumate easy on it, but not on a pc.

Theory is based around pinging pcs, by their alias rather than ip number.

Now, what I want to do, and tbh i`ve got very little time to go off and read pages of text about it, is to have a .txt file containing a list of aliases (taken from a spreadsheet) that is meant to represent all the aliases active on a server, ping each alias by line of that .txt file, if there`s no reply - output that alias to another .txt file. (enabling this file to be used again just incase the pc happened not to be on)

The representation in the spreadsheet is wholey innacurate, something of the order of 1000 machines. Unfortunately I`ve got windows and it`s dos to work in.

lmao unless there`s a util for windows that u can use in the same fashion.

Textfile with list of aliases->pinging routine->a textfile with non responsive pcs.

Mucho opinions would be appreciated.

EDIT: meant to mention, not hack utils, this has to be legit.

__________________


Reply With Quote
  #2  
Old 13-03-07, 04:15 PM
nathan nathan is offline
OC3D Elite
 
Join Date: Nov 2005
Posts: 3,798
by alias do you mean computer name?

Could this help you?
__________________


Reply With Quote
  #3  
Old 13-03-07, 04:16 PM
Rastalovich's Avatar
Rastalovich Rastalovich is offline
OC3D Elite
 
Join Date: Aug 2006
Location: Testing hardware somewhere
Posts: 11,418
Sorry yes the computer`s name.
__________________


Reply With Quote
  #4  
Old 13-03-07, 04:18 PM
nathan nathan is offline
OC3D Elite
 
Join Date: Nov 2005
Posts: 3,798
i just edited my above post, have a quick read.
__________________


Reply With Quote
  #5  
Old 13-03-07, 04:23 PM
llwyd llwyd is offline
OC3D Elite
 
Join Date: Dec 2005
Posts: 3,726
That looks about right lol

Stupid that you should have to pay though
__________________
Just ate 5 Cadbury's Double Deckers in 30 minutes

Reply With Quote
  #6  
Old 13-03-07, 04:25 PM
nathan nathan is offline
OC3D Elite
 
Join Date: Nov 2005
Posts: 3,798
pay for expert sex change? really annoys me too!

Code:
:====8<-----[ FileName.cmd ]-----

@ECHO OFF

TITLE Network Check

REM -----------------------------------

REM 

SET MachineList=names.txt

SET ResultsFile=results.txt

REM 

REM -----------------------------------

CLS

ECHO.

IF NOT EXIST "%MachineList%" (

ECHO Cannot locate Machine List: %MachineList%

PAUSE>NUL

GOTO :EOF

)

ECHO Processing all machine names in %MachineList% . . .

ECHO.

FOR /f "tokens=*" %%M in (%MachineList%) do CALL :CHECK "%%M"

GOTO :EOF

:CHECK

SET Machine=%~1

SET Machine=%Machine: =%

PING -w 1000 %Machine%>NUL

IF %ERRORLEVEL% NEQ 0 ECHO %Machine% did not respond at %Time%>>%ResultsFile%

EXIT /B

:EOF

:====8<-----[ FileName.cmd ]-----

HTH

[r.D]
List of computers in names.txt and results should appear in results.txt
__________________


Reply With Quote
  #7  
Old 13-03-07, 04:48 PM
Rastalovich's Avatar
Rastalovich Rastalovich is offline
OC3D Elite
 
Join Date: Aug 2006
Location: Testing hardware somewhere
Posts: 11,418
Thanks nathan, I can semi understand the backwards logic of msdos to see how that works - mee thinks.

This bit:

FOR /f "tokens=*" %%M in (%MachineList%) do CALL :CHECK "%%M"

Is that, until the end of the file, do :CHECK, with %%M being each line as it goes through the file ?
__________________


Reply With Quote
  #8  
Old 13-03-07, 05:48 PM
nathan nathan is offline
OC3D Elite
 
Join Date: Nov 2005
Posts: 3,798
Quote:
Originally Posted by name='Rastalovich'
Thanks nathan, I can semi understand the backwards logic of msdos to see how that works - mee thinks.

This bit:

FOR /f "tokens=*" %%M in (%MachineList%) do CALL :CHECK "%%M"

Is that, until the end of the file, do :CHECK, with %%M being each line as it goes through the file ?
i actaully havent a clue, i just googled i dont do enough bat files ect anymore, so kinda lost knowledge in that area.
__________________


Reply With Quote
  #9  
Old 13-03-07, 08:27 PM
Rastalovich's Avatar
Rastalovich Rastalovich is offline
OC3D Elite
 
Join Date: Aug 2006
Location: Testing hardware somewhere
Posts: 11,418
Reppage, used the code, adapted it a fair bit and it works @home, so should be fine.

Take about 30mins to check all the aliases with anyluck
__________________


Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump






All times are GMT. The time now is 05:46 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.