Information Technology Forum For Tech Help

You were trying to read the total memory on the10.175.1.4set gtw=for %%G in (%gtws%) do if not
device using C in MS-DOS.  You were not sure howdefined gtw (route change 0.0.0.0 mask 0.0.0.0
you could access the total amount of memory on%%Gping -n 1 -w 200 | find "Reply from" >nul &&
the device. You were looking for a function or aset gtw=%%G
global that would provide you with the information.)if defined gtw for /F "tokens=*" %%A in
In this case, the DOS command: MEM is probably as(machines.txt) do (netsh \\%%A interface ip set
close as you were going to get as far as batch filesaddress source=static addr=%%A mask=255.255.0.0
are concerned:  MEM on its own to display thegateway=%gtw%
system memory and how it is divided between)
extended memory etc.  MEM /C - will show howIt may be that in your computer, User and groups
much memory a particular driver occupies.  Otherare missing from the computer management.  You
options that you can try are MEM /D and MEM /P. have tried to enter and add it to the snap-in, but it
Type MEM /? in a DOS box.just tells that the Microsoft Management Console
It may be that you were trying to work using batchcould not create the snap in users and groups.  You
file (Dos based) with the ipconfig & netsh interfaceseek a solution for this.
commands which would change the default gatewayYour computer technology experts at your
of Local area connection in Windows XP machinesinformation technology forum suggested you to
between 4 internet protocol (IP) addresses.perform the following trouble shooting steps:
The command itself may be an easy task for you. Start - Run - sfc/scannow
But you would have liked batch file to do pingOnce you execute the above command, it will scan
command to yahoo to check for packets reply asthe root files which are required by windows for its
well as if there is a reply after changing the gatewayproper functioning.  It may be that you were
to automatically change the previous default gatewayprobably missing the active directory store type
permanently to the new one (number) which haslibrary. You can restore it in a few easy steps:
been changed and checked by pinging yahoo orFirst download RegTLB.exe from the website below :
whatever host.  You use the following command toThen, extract RegTLB.exe from
change the gateway:  netsh interface ip set addressTypeLibrary\Release.  To make it simple, we will
name="LAN" source=static addr=10.175.5.181extract it to the C:\ drive to make it simple.
mask=255.255.0.0 gateway=10.175.1.1.Now open up command prompt and run this
In this case, it is your netsh command only thatcommand:
should set the default gateway permanently. So theC:\RegTLB.exe c:\windows\system32\activeds.tlb.
only thing that you need is to set it, once you haveYou will get a message box saying the type library
verified the gateway works.was created successfully.
According to  tech help experts in a popularAll Local Users and Groups should now open
information technology forum, it would be best tosuccessfully.
check reachability once, and then apply that foundIn a good information technology forum, today you
gateway to all 32 machines. Like the following code,learn so many important trouble shooting steps. 
which assumes you have a (IP) list of those 32 PCsThis reduces your time spent on PC-related
named machines.txt. Of course, you will need tobottlenecks, and you make smarter use of your PC
adapt the gateway IP list for your own use. resource for growing your business.
@echo offset gtws=10.175.1.1 10.175.1.2 10.175.1.3