| You were trying to read the total memory on the | | | | 10.175.1.4set gtw=for %%G in (%gtws%) do if not |
| device using C in MS-DOS. You were not sure how | | | | defined 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 a | | | | set 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 files | | | | address source=static addr=%%A mask=255.255.0.0 |
| are concerned: MEM on its own to display the | | | | gateway=%gtw% |
| system memory and how it is divided between | | | | ) |
| extended memory etc. MEM /C - will show how | | | | It may be that in your computer, User and groups |
| much memory a particular driver occupies. Other | | | | are 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 batch | | | | could not create the snap in users and groups. You |
| file (Dos based) with the ipconfig & netsh interface | | | | seek a solution for this. |
| commands which would change the default gateway | | | | Your computer technology experts at your |
| of Local area connection in Windows XP machines | | | | information 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 ping | | | | Once you execute the above command, it will scan |
| command to yahoo to check for packets reply as | | | | the root files which are required by windows for its |
| well as if there is a reply after changing the gateway | | | | proper functioning. It may be that you were |
| to automatically change the previous default gateway | | | | probably missing the active directory store type |
| permanently to the new one (number) which has | | | | library. You can restore it in a few easy steps: |
| been changed and checked by pinging yahoo or | | | | First download RegTLB.exe from the website below : |
| whatever host. You use the following command to | | | | Then, extract RegTLB.exe from |
| change the gateway: netsh interface ip set address | | | | TypeLibrary\Release. To make it simple, we will |
| name="LAN" source=static addr=10.175.5.181 | | | | extract 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 that | | | | command: |
| should set the default gateway permanently. So the | | | | C:\RegTLB.exe c:\windows\system32\activeds.tlb. |
| only thing that you need is to set it, once you have | | | | You will get a message box saying the type library |
| verified the gateway works. | | | | was created successfully. |
| According to tech help experts in a popular | | | | All Local Users and Groups should now open |
| information technology forum, it would be best to | | | | successfully. |
| check reachability once, and then apply that found | | | | In 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 PCs | | | | This reduces your time spent on PC-related |
| named machines.txt. Of course, you will need to | | | | bottlenecks, 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 | | | | |