You were trying to read the total memory on the device using C in MS-DOS. You were not sure how you could access the total amount of memory on the device. You were looking for a function or a global that would provide you with the information.
In this case, the DOS command: MEM is probably as close as you were going to get as far as batch files are concerned: MEM on its own to display the system memory and how it is divided between extended memory etc. MEM /C – will show how much memory a particular driver occupies. Other options that you can try are MEM /D and MEM /P. Type MEM /? in a DOS box.
It may be that you were trying to work using batch file (Dos based) with the ipconfig & netsh interface commands which would change the default gateway of Local area connection in Windows XP machines between 4 internet protocol (IP) addresses.
The command itself may be an easy task for you. But you would have liked batch file to do ping command to yahoo to check for packets reply as well as if there is a reply after changing the gateway to automatically change the previous default gateway permanently to the new one (number) which has been changed and checked by pinging yahoo or whatever host. You use the following command to change the gateway: netsh interface ip set address name=”LAN” source=static addr=10.175.5.181 mask=255.255.0.0 gateway=10.175.1.1.
In this case, it is your netsh command only that should set the default gateway permanently. So the only thing that you need is to set it, once you have verified the gateway works.
According to tech help experts in a popular information technology forum, it would be best to check reachability once, and then apply that found gateway to all 32 machines. Like the following code, which assumes you have a (IP) list of those 32 PCs named machines.txt. Of course, you will need to adapt the gateway IP list for your own use.
@echo off
set gtws=10.175.1.1 10.175.1.2 10.175.1.3 10.175.1.4
set gtw=
for %%G in (%gtws%) do if not defined gtw (
route change 0.0.0.0 mask 0.0.0.0 %%G
ping www.yahoo.com -n 1 -w 200 | find “Reply from” >nul && set gtw=%%G
)
if defined gtw for /F “tokens=*” %%A in (machines.txt) do (
netsh \\%%A interface ip set address source=static addr=%%A mask=255.255.0.0 gateway=%gtw%
)
It may be that in your computer, User and groups are missing from the computer management. You have tried to enter and add it to the snap-in, but it just tells that the Microsoft Management Console could not create the snap in users and groups. You seek a solution for this.
Your computer technology experts at your information technology forum suggested you to perform the following trouble shooting steps:
Start – Run – sfc/scannow
Once you execute the above command, it will scan the root files which are required by windows for its proper functioning. It may be that you were probably missing the active directory store type library. You can restore it in a few easy steps:
First download RegTLB.exe from the website below :
http://www.freevbcode.com/ShowCode.Asp?ID=2195
Then, extract RegTLB.exe from TypeLibrary\Release. To make it simple, we will extract it to the C:\ drive to make it simple.
Now open up command prompt and run this command:
C:\RegTLB.exe c:\windows\system32\activeds.tlb.
You will get a message box saying the type library was created successfully.
All Local Users and Groups should now open successfully.
In a good information technology forum, today you learn so many important trouble shooting steps. This reduces your time spent on PC-related bottlenecks, and you make smarter use of your PC resource for growing your business.
A good tech support forum can go a long way in helping you optimize your marketing performance by smart computer application techniques. Visit for free tech help advice and be the first mover when it comes to using latest computer technologies for your business needs.

Leave a Reply
Powered by Yahoo! Answers