1. Easy (Fairly) Safe Steps to Make Windows XP Faster
1. Turn off Auto Indexing
Windows comes with an annoying indexing service, it's better to turn it off and use Google or Yahoo's desktop
search engine instead. In windows explorer, right click on your "C:" drive. Select "Properties", then
look at the "General" tab. At the bottom uncheck "Allow Indexing Service..."
2. Look at your "Recycle Bin" and empty it if you really don't need those files.
3. Disk Cleanup
On that same tab select "Disk Cleanup" and wait a few minutes. A window will appear with checkboxes.
Check "Temporary Internet Files", "Offline Web Pages", "WebClient/Publisher Temporary Files",
and "Temporary files". Check the others at your own risk. Leave the "Office Setup Files" as is. Don't
make Office mad at you. Then select "OK".
4. Defrag the drive
Whether or not this helps is up for debate, but it won't hurt your system. In windows explorer, right click
on your "C:" drive. Select "Properties", then look at the "Tools" tab. Select "Defragment
Now...", then select "Defragment".
Better yet, you can schedule a job to defrag your drive. Create a batch file, defragger.bat,
date/t & time/t
C:\WINDOWS\system32\defrag.exe C: -v
date/t & time/t
And then schedule "defragger.bat > c:\defrag.txt" to run once a week or month (or if your obsessive
like me, once a day at 2am). See note below for details on scheduling.
5. Remove extra startup processes
Select the "Start" button, then "Programs", then "Startup". Look at the programs
that are automatically started each time you reboot. Right click on any that are not necessary and delete them.
6. Remove extra programs
Select "Start", "Settings", "Add Remove Programs" and waste anything you don't
need anymore.
7. Remove spyware and adware
Download the free Microsoft Spyware detector or Ad-aware.
8. Remove extra graphical effects
Right click "My Computer", select "properties" select "advanced", select "performance
settings". Check "adjust for best performance" and uncheck every check.
2. How to schedule a task in windows xp
To schedule a task, click Start, select Programs, select Accessories, select System Tools, select Scheduled Tasks.
3. To use 'vi' from the SFU package in the cmd shell
Set the terminal type to interix, i.e., set TERM=interix
4. Shortcuts:
1. Windows-F - Quick way to launch the "Find" utility
How to get rid of that annoying "Send Error Report to Microsoft" popup:
(even though most sites recommend not doing this)
1. On the "My computer" icon, right click and select "Properties"
2. Select the "Advanced" tab, and then "Error Reporting"
3. Select "Disable error reporting" and uncheck the "But notify me..." option.
To see what speed your processor is
In the file browser, right click on "My Computer" and select "Properties".
The speed and RAM details are on the "General" tab.
To create an Emergency Repair Disk:
Start/Run/rdisk
To map a drive:
net use z: \\vulcan\development /user:MyDomain\myusername /persistent:yes
-----------------------------------------------------------
from http://www.jsiinc.com/reghack26.htm#T501
How do I pipe the entire contents of a batch file (commands and responses) to a log file?
The syntax is:
Drive:\BatFolder\BatchName.bat>Drive:\LogFolder\LogName.log 2>&1
If you wish to fully log a scheduled job, put the command in another batch file. Example: c:\zzz\batch0.bat contains:
c:\zzz\batch1.bat>c:\temp\batch1.log 2>&1
Then schedule c:\zzz\batch0.bat:
AT hh:mm cmd /c "c:\zzz\batch0.bat"
-----------------------------------------------------------
From http://ci.ml.org/ntsecrets/info/secrets.htm
Question: How do I schedule a batch job to run automatically?
Answer: Start/Programs/Accessories/System Tools/Scheduled Tasks
-----------------------------------------------------------
*******************************************************************
From ZDNet:
Scheduling a reboot of your server
If you would like to reboot your Windows NT server, but don't want
to have to be there to do it, you can use the shutdown Windows NT
Resource Kit utility, along with the at command, to schedule a
reboot of your server.
(You can download the Windows NT 4.0 Resource Kit Support Tools,
which include the shutdown utility, by going to
http://www.microsoft.com/ntserver/nts/downloads/recommended/ntkit/
default.asp. The at command is included with Windows NT Server 4.0.)
The shutdown utility requires that you use several parameters.
These include /L (to specify that you want to shut down the local
computer), /R (to specify that you want to reboot after the
shutdown of your server), and /Y (to specify that you want to
answer "yes" to all questions). For example, to shutdown and reboot
your local server, you should type:
shutdown /L /R /Y
When you're ready to schedule the shutdown command to run, begin by
starting the Schedule service in the Services icon within Control
Panel. After starting the Schedule service, schedule shutdown to run
by typing the following command: at time /next:date command. For
example, to schedule the shutdown to run every Saturday at 3:00 P.M.,
type the command:
at 15:00 /every:Saturday c:\ntreskit\shutdown /L /R /Y
to change the title on a command window in NT
c:>title my new title
to change the permissions on the command line (like chmod)
attrib -r myfile.dat
To put multiple commands in a console, separate them with '&'
c:>dir & pwd
You can change the Start menu delay in displaying sub-menus. Bring up
REGEDT32. Go to HKEY_CURRENT_USER\ControlPanel\Desktop,
MenuShowDelay:. Set REG_SZ: to anything between 0 (fastest) and 4000
(slowest).
Launch Windows NT faster by adjusting the boot delay to 5 seconds or
less. To make the change, open Control Panel/System and select the
Startup/Shutdown tab. In the Show List For control, change the
setting to the desired boot delay value. To bypass the boot menu
altogether, set the delay value to 0.
To refresh explorer enter F5.
C:\>path=%PATH%;c:\fincher\bin
If you want to be able to depress the TAB key to complete the file name you are typing at a command prompt, edit:
HKEY_CURRENT_USER/Software/Microsoft/Command Processor
Double Click on CompletionChar or add value of REG_DWORD, set it to 9. You will need to reboot.
c:>nbtstat -R
Successful purge and preload of the NBT Remote Cache Name Table.
c:>netstat -a
network status command for ports
net use z: \\othermachinename\c
to map a drive from another machine to z
c:> net use //shows mapped drives
c:> net user username // shows characterics of user like when the password expires
c:> net view /domain: mycompanydomain // finds machines on the net
c:\winnt\system32\drivers\etc\Hosts
is where the local dns filelookup table lives.
c:START notepad
does a batch invocation, like & in unix
CNTL-ESC is the same as the windows key.
net send mfincher howdy mitch
to send a message to mfincher on windows network
net send /users "this is sent to all users of the machine."
net send mfincher "this is a message only for mitch"
In InternetExplorer to expand all folders below the currently selected
one, press the "*" on the numeric keypad (not the "*" on the 8 key).
To have a batch file "sleep" or "wait" use:
perl -e "sleep(3);"
5. To start and stop IIS from the command line
net START "World Wide Web Publishing Service"
net STOP "World Wide Web Publishing Service"
6. To view which programs are associated with which extensions
assoc
7. To print a window.
1. PrtScrn will put a snapshot of the entire screen into the Clipboard;
"Alt-Print Scrn" will save only the active window.
Ctrl-"PrintScrn" -- pastes the current window into the clipboard
2. Open "Paint" program and do a paste.
8. Display a complete tree
In Windows NT Explorer and in Microsoft Outlook, if you select a folder then press "*" on the numeric
keypad (Num Lock can be on or off), the entire tree of sub-folders under the selected folder will be expanded. Pressing "-"
on the keypad will collapse the tree again.
9. Misc
1. End of line characters
dos is CRLF
mac is CR
Unix is LF
2. recursively copy over a network:
xcopy /e mydir1\* \\venus\\usr\mydir1
3. Postscript command for duplex printing Right before the line starting with "%%BeginProcSet: ", insert
the following two lines:
% Enable Duplex printing
<< /Duplex true >> setpagedevice
4. Windows NT reboot
You can force NT to automatically reboot after a crash by setting the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\CrashControl\AutoReboot
to 1.
5. To remove a directory:
rd x:\folder /S
Replace x:\folder with the drive letter and name of the folder you want to delete. use
rd x:\folder /S /Q
to have rd use "quiet" mode so it won't give you all the messages and warnings.
6. To configure your ip settings
winipcnfg
7. To flush (or reset) your dns settings
ipconfig /flushdns
8. Misc windows key settings: (from Ian P. Springer [ips@fpk.hp.com])
[Windows]F: Opens the Find dialog box
[Windows]M: Minimizes all open windows
[Windows]R: Opens the Run dialog box
[Windows][Break]: Opens the System Properties dialog box
[Windows][Tab]: Cycles through the programs on your taskbar
[Windows][F1]: Opens Windows NT Help (regardless of the program you're
working in--pressing [F1] by itself opens the current program's Help)
bonus: [Ctrl][Shift][Esc] start Task Manager
9. Command looping in winnt
Consider the following command:
FOR /L %g IN (1,1,254) DO ping -n 2 200.200.200.%g
In English, this command states that we want to "do" the ping command as long
as the %g variable is within the range from 1 to 254. We specify the range for
%g by using the syntax (start, step, end). Start indicates the starting value
for %g (1 in this example), step indicates the number with which we want to
increment %g (1 in our example), and end indicates the number at which we want
to stop pinging. We've also limited the number of pings to 2 by using -n 2
(instead of the typical 4 for each computer.
When you run this command, you'll see that your computer pings the following
IP addresses:
200.200.200.1
200.200.200.2
200.200.200.3
...
200.200.200.254
This tip was contributed by Rafael Sanchez, fariceo@yahoo.com.
10. Create a CD disk that automatically launches a web page Create an autorun.inf file with the following contents
and it will launch internet explorer and show the "index.htm" page:
[autorun]
label=Eagles 2000
open=explorer.exe index.htm
11. Simulate a sleep or wait call
"-n" is the number of pings, which could roughly be proportional to the amount of time to wait.
This is not really elegant, or even recommended, but in a pinch, it'll work.
C:\WINDOWS\system32\ping.exe 127.0.0.1 -n 5 -w 5000 > nul
12. Loop over arguments using SHIFT in a command batch file
rem loops through the arguments and qparses the qqc file
rem example of how to use SHIFT to process arguments - also see FOR
@echo on
:LOOP
echo "Compiling %1"
cd C:\mrInterviewSource
cd %1
call c:\home\mfincher\bin\qparse.bat %1
SHIFT
IF "%1" == "" GOTO END
GOTO LOOP
:END
echo "All Done."
|