Friday, 6 April 2012

How to run Control Panel tools by typing a command

  Control panel tool             Command
   -----------------------------------------------------------------
   Accessibility Options          control access.cpl
   Add New Hardware               control sysdm.cpl add new hardware
   Add/Remove Programs            control appwiz.cpl
   Date/Time Properties           control timedate.cpl
   Display Properties             control desk.cpl
   FindFast                       control findfast.cpl
   Fonts Folder                   control fonts
   Internet Properties            control inetcpl.cpl
   Joystick Properties            control joy.cpl
   Keyboard Properties            control main.cpl keyboard
   Microsoft Exchange             control mlcfg32.cpl
      (or Windows Messaging)
   Microsoft Mail Post Office     control wgpocpl.cpl
   Modem Properties               control modem.cpl
   Mouse Properties               control main.cpl
   Multimedia Properties          control mmsys.cpl
   Network Properties             control netcpl.cpl
                                  NOTE: In Windows NT 4.0, Network
                                  properties is Ncpa.cpl, not Netcpl.cpl
   Password Properties            control password.cpl
   PC Card                        control main.cpl pc card (PCMCIA)
   Power Management (Windows 95)  control main.cpl power
   Power Management (Windows 98)  control powercfg.cpl
   Printers Folder                control printers
   Regional Settings              control intl.cpl
   Scanners and Cameras           control sticpl.cpl
   Sound Properties               control mmsys.cpl sounds
   System Properties              control sysdm.cpl 
 
 
NOTE: The Scanners and Cameras applet (sticpl.cpl) cannot be run 
in Windows Millennium. It has been replaced by the Scanners and Cameras 
Folder, which is similar in function to folders like Printers and 
Dial-up Networking.



Windows substitutes the name of the tool you want to run for %1%. For example:
"rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl".
To run the Users tool in Control Panel, type control Ncpa.cpl users, and then press ENTER.

To run the Users tool for Windows 95/98/Me, type "control inetcpl.cpl users" (without the quotation marks) and then press ENTER.
 

Monday, 2 April 2012

Windows Tip: Shutdown Your Computer With The Command Prompt

How To:

Open the command prompt: Windows Key + R then type the command below and hit OK:
cmd
This will open the command prompt. Now we can play!
Note: You could type the shutdown command directly into the Run dialog. I don’t advise this. If there is a typo or error, you won’t know. There is no information given!

Shutdown Local Machine

This only takes a couple of keystrokes. Type the code below and hit OK:
shutdown -s
“shutdown” tells the computer what command we want to execute and the “-s” switch tells it what to do, which is to shutdown!

Specify Time

shutdown -s -t 60
Now we have added the “-t” switch and a variable, which in this case is “60″. This number is the number of seconds before the computer is shutdown. A dialog will open and display a count down timer!

Give Us Some Info!

shutdown -s -t 120 -c "You better finish, because I shut you down foo!"
The “-c” switch will allow you to give the user some information for the reason of the shutdown.

Shutdown A Remote Computer

shutdown -s -m \\desktop -t 45
I really like this one! The “-m” switch will allow you to shutdown a remote machine, in this case, a computer named “desktop”. For this to work, you must have administrative access to the computer! To see of you do, hit Windows Key + R then type the computer’s name, i.e.:
\\desktop
If you can connect to it, you will be asked to log into the machine with a user name and password. Once confirmed, a window will open displaying the directories available to you. Now you know you can shut it down remotely.

Cancel Shutdown

Let’s say that you need to cancel a shutdown in progress. Go to the computer in question, hit Windows Key + R then type command below:
shutdown -a
This will abort the shutdown, assuming there is a counter and it hasn’t reached zero yet!

What is using port XXX on my computer ?

1. Open a command prompt window. From Start / Run enter: cmd

2. From the command prompt enter : netstat -ano

How to print to a network printer from an MS-DOS-based program in Windows XP

Use the net.exe command to establish a persistent connection. To do this, use the following syntax at a command prompt
net use lptx \\printserver\sharename /persistent:yes
where x is the number of the printer port that you want to map, where printserver is the print server that is sharing the printer, and where sharename is the name of the printer share.

For example, to map LPT2 to a printer shared as Laser1 on a print server that is named Pserver, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type cmd, and then click OK.
  3. Type net use lpt2 \\pserver\laser1 /persistent:yes, and then press ENTER.
  4. To quit the command prompt, type exit, and then press ENTER.
Note In Windows XP, non-administrative users cannot map an LPT port to a network printer path when the LPT port exists on the computer as a physical parallel port.

Commands to delete virus

am using ms-dos commands in deleting any viruses. Please copy the code below in a text editor (notepad would be enough) and save it to anyname.bat
One of my MS_DOS Program Codes are coded below.
Note: Put the saved bat file in any drive or directory that you want to access. These batch of line of codes will display all the files inside the directory where it is present. And as it was made to do, it can delete any file or folder. For more information, Please never hesitate to e-mail me. Here is my e-mail address(Email Id removed for security). Your questions will be appreciated.
Operation:
1. Copy the below codes
2. Open notepad and paste it.
3. Save the file as Anyname with a ".bat" file extension
4. Copy the bat file in any drive you wish to access.
5. Execute the file by doubleclicking it.
6. The files of the directory will be displayed
7. Press the TAB key on your keyboard to Select the file that you want to delete.
CAUTION: Any file deleted that way will never go at the RECYCLE BIN, and will never be recovered.


@ECHO OFF
prompt $p$g
title algeeroidbiletdoux System FlashX
:Shredder
color 02
CLS
ECHO.
ECHO algeeroidbilletdoux System FlashX
ECHO DRIVE SHREDDER
ECHO.
dir /a/w
ECHO.
ECHO "PRESS THE TAB KEY IN YOUR KEYBOARD TO SELECT ON THE DIRECTORY"
ECHO.
SET /P M= SHREDD
IF NOT EXIST %M% GOTO :driveShredderERROR
attrib -s -h -r %M%
del /f /q %M%
IF NOT EXIST %M% GOTO :SHREDCOMP
RD /S %M%
:SHREDCOMP
COLOR 0A
echo MyBox = MsgBox("File/Folder has been Shredded. File/Folder deleted this way will never go at the recycle bin.", 6000, "algeeroidbilletdoux System FlashX") >driveshredder.vbs
start /w driveshredder.vbs
del /f /q driveshredder.vbs
GOTO :Shredder
:driveShredderERROR
COLOR 0A
echo MyBox = MsgBox("The File/Folder you type does not exist and match in the directory.", 6000, "algeeroidbilletdoux System FlashX") >folderatt.vbs
start /w folderatt.vbs
del /f /q folderatt.vbs
GOTO :Shredder

How To Put the System into hibernation or Standby from Run menu

To put the system in to hibernation:-

1]Make sure that the system is hibernation enabled. To confirm that, Click the Start button, go to Run menu and type in Powercfg.cpl and click OK. In the Power Options Propertiesclick Hibernate  tab and make sure that Enable hibernation option is checked. Click OK/Apply.

2]Now Click the Start button, go to Run menu and type in %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState and click OK.

To put the system in to Stand by :-

1]Make sure that the system is hibernation disabled. To confirm that, Click the Start button, go to Run menu and type in Powercfg.cpl  and click OK. In the Power Options Propertiesclick Hibernate  tab and make sure that Enable hibernation option is unchecked. Click OK/Apply.

2]Now Click the Start button, go to Run menu and type in %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState and click OK.

Troubleshooting Barcode Printer

Problem: If you try to give the print command from DOS prompt, there will not be any response. But if you give a print command from a notepad, the same will be printed [barcode printer]



  • The printer was cheked with about 7 PCs with Windows XP and gave the same result - print did not came from DOS.

  • But when we checked with a receipt printer, the printout did came. We just plugged out the cable from barcode printer and plugged into the receipt printer and saw it printing from DOS mode

  • We also checked with

    • Printer Properties, Print Preferences
    • Device Manager Settings - verified the Port
    • Noted down the IRQ No and checked the same with Bios.
    • Changed the settings for LPT1 in Bios
    • Reinstalled the Printer Driver
    • I even tried the solution suggested by our team for conversion tool for dos printing etc. ---- but of no use



The Actual Solution is to change the Print Processor setting which is under the Advanced tab of the Printer Properties window. You need to change the Default Data Type in the Print Processor window

Changing the Printer Port LPT3 to LPT1 in Settings

Changing the Printer Port LPT3 to LPT1 in Settings ,
Right Click the My Computer-->Properties-->(in System Properties) Select Hardware --> Select Device Manager --> Choose (Ports (Com & LPT) and Double Click --> Select Printer Port (LPT3) and Right Click,
Go to Properties --> Select Port Settings --> Change the LPT Port No Settings LPT3 to LPT1
Apply the Settings and Re-start the Machine and Re-install the Printer Driver..

Print not working in DOS Prompt - LPT3 is found, & LPT1 is not present

Issue: Print not working in DOS Prompt, since the printer port is LPT3 [Latest intel boards won't have LPT ports, customer installed the add-on LPT port for us, by default it is found as LPT3]

Solution: We can change the Port number in
Right click My computer - Properties - Hardware - Device manager
Double click on Ports (COM & LPT)
Right click on LPT3 - Properties
Goto "Port settings" tab
Change the LPT Port number as "LPT1" and save the dialog box

Then it will print from DOS Prompt

Printer Spooler service not started

Issue:
Unable to print the required invoices, documents,etc., in windows pc's.

Cause:1
Check for printers added in the printers & faxes. Installed printer drivers conflicted with the printing service. So need to remove the specific printer driver installed in the printers & faxes configuration. The problem would be with printer which would be default set.

Symptoms:
Start the printer spooler services in services.msc, print given to the given or already print given, the printer spooler service automatically stopped.

Solution:

1. Go to printers & faxes configuration option from program menu, control panel, printer-&f-axes
2. Make a note details of all the printers installed (driver name, printer name, model,etc.,)
3. Idenfity the default printer set
4. Delete that printer set as default
5. Check the printer spooler service started in services.msc
6. Still issue not solved , remove printer one by one
7. Reinstall the correct printer driver
8 . Verify it, spooler service started successfully by auto or else start manually

Server Client Access Very Very Slow

Issue : - Accessing the server from client via any running application software is too long to respond.

Common Causes of Connectivity problems:-
1). Network adapters and switch ports with mismatching duplex levels or transfer speed settings.

2). Network adapters or switches with transmission rates of 10/100 or 10/100/1000 megabits per second (Mbps) not functioning switch over correctly.

3). The network adapter is incompatible with the motherboard or other hardware or software components and drivers.

4). Firewall software not functioning properly, due to bugs in its network connectivity check segment.

Cases to Check:-
1). Check for connectivity responses between Server and Client's using PING

2). Check system event logs for network card/connectivity related errors

3). Check for networking devices between Server and Client i.e swithces,lan cables, lan card.
Typically occur because of incorrect network adapters, incorrect switch settings, faulty hardware, or driver issues.

4). Check for Windows Firewall / Special Antivirus Software Firewall installed in both Server and Clients.

TroubleShooting steps:-
1). Ping the Server from Client's with issue or From Client's to the Server (use domain name or IP to ping)
Ex. ping WindowsServer -t
-"t"- for continuos ping
Sample Output:-
"ping WindowsServer -t"

Pinging 192.168.6.4 with 32 bytes of data:
Reply from 192.168.6.4: bytes=32 time<1ms TTL=64
Reply from 192.168.6.4: bytes=32 time<1ms TTL=64
Reply from 192.168.6.4: bytes=32 time<1ms TTL=64
Reply from 192.168.6.4: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.6.4:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Ex. ping LinuxServer
The response time in millisecond should less than or equal to 1 or 2, rarely sometimes other lower latencies would come without any data transmission.(Environment: Server and Clients's in the same network).
There should not be any LOSS.
Also check with preloaded data for server client reponses by the following:

"ping WINDOWSSERVER -l 45000 -t "

Pinging kmuadmin [192.168.6.74] with 45000 bytes of data:
Reply from 192.168.6.74: bytes=45000 time=9ms TTL=128
Reply from 192.168.6.74: bytes=45000 time=9ms TTL=128
Reply from 192.168.6.74: bytes=45000 time=9ms TTL=128
Reply from 192.168.6.74: bytes=45000 time=9ms TTL=128

Ping statistics for 192.168.6.74:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 9ms, Maximum = 9ms, Average = 9ms

2). Check the systems event logs using eventvwr (Windows) or dmesg/syslog (Linux)

3). Check for whether the network adapter is compatible with Microsoft Windows or Linux Operating systems
-Check the link http://winqual.microsoft.com/HCL/Default.aspx?m=x

4). Check computers that use the correct gateway that are plugged into the same hub or switch.

5). If the computers do not experience network connectivity problems, the problem may be a faulty network adapter on one computer.

6). Check for Server's/Client's motherboard must be updated with latest BIOS from vendor's Web site or contact your hardware vendor

7). Make sure that all complementing network resources (network adapter, hub, and switch) are set to the same speed and duplex level. Force it to use full-duplex.

8). Reset the switch, restart the client, and test the connectivity.

9). Manually set the network adapter of the computer that has connectivity problems to half-duplex and a lower speed 10mbps , whether connection can be established at a lower transmission speed.

10). To increase performance, increase the speed settings manually to 100 Mbps, and then restart the computers. Test for network connectivity loss, increase the setting to full-duplex, and then restart the computers. If network loss occurs, reduce the duplex setting and the speed to the previous settings.

11). Swap the network cable between the failing system and the hub or switch.

12). Replace the network adapter with a network adapter that has been tested and proven reliable. To do this, follow these steps:
-a)Remove the network adapter diagnostics program.
-b)Remove the network adapter in Network properties.
-c)Install the new network adapter.

13). Disable the network adapter settings and Enable it .
Right click network properties on desktop, choose the correct LAN connection, right click disable,enable it .
If this is the case, there would be issue with Software Firewall installed, contact software firewall service provider to get them fixed.

14). Put the continuous ping's from Server to Client/Client's by adding successive manner, Disable the Software Firewall install and check whether response time is feasible in all ping OUTPUT'S(ref:attachments)
If this is the case contact software firewall service provider to get them fixed.

Analysis Pending:
Free tools(Network Monitor) available to sort out this issue , followed by evaluation later.

Attachments:

Sample network choking ping screenshot attached.

Note:
Please contact system-administrator for firewall issue.Disabling any antivirus/firewall services without knowledge of them is restrictable, which leads to crash the windows operating system.

While saving the bill the system PC got hangs. Why?

The problem could be due to the following reasons

1. Printer

a. The default printer configured may not work properly. Due to that the windows took longer time......

b. If you dont need the print then 'uncheck' the print checkbox in the sales screen.

c. If you dont need the print then create the printer from Start -> Settings -> Control Panel -> Printers&Faxes and set as default.

2. You may enabled the cashdraw feature without the cashdrawer. Uncheck the cashdraw checkbox under the options.

3. You may enabled the pole display feature without the pole display. Uncheck the poledisplay checkbox under the options.

How to check the MySQL is running?

Solution 1: Check the port is in listening mode

Run the command "netstat -an"

Check the port number 6033 is in LISTENING

"An error occurred while trying to share . The Server service is not started "






To fix the error "An error occurred while trying to share . The Server service is not started " we need to
start the lanmanserver on your computer. The steps to start lanmanserver service are..

* Click on start and go to command prompt

* On command prompt type "net start lanmanserver" and press enter.





*After starting the lanmanserver you will not face any issues in sharing your folder over a Local Network.


Run can be enabled in Windows 7 as well like Vista.

1. Right click on any open area in the start menu and select Properties.
2. Select the Start Menu tab in the properties window and click Customize button.

3. In the customize window, check the box against Run Command and click OK.
4.Now if you open the Start Menu, you can see the Run Command added to it.

by default ,RUN menu in hide mode (vista and windows 7)

alternate methods

1.Windows Key+ R
2.type RUN ,in search window and enter.


 

How to 'Run as administrator'

For security reasons, Vista has been designed so that for normal operations even administrators work with ordinary user 'tokens'. When an administrator needs elevated rights, they either click 'Continue' in the UAC box, or seek the 'Run as administrator' option.

The key to this 'Run as administrator' technique is to identify the master program. My point is that while Ipconfig may report an error such as, 'The requested operation requires elevation', the problem lies with the master program, cmd.exe, and not Ipconfig. Don't blame the passenger for the sins of the driver.

Method 1: Right-click

* Right-click the master program, for example: Command Prompt.
* Select - 'Run as administrator' from the shortcut menu.
* See screenshot below.

Method 2: Ctrl +Shift +Enter

Once again find the key executable, but instead of launching it by clicking with the mouse, press this keyboard combination: Ctrl +Shift +Enter. One clue that this method has worked is that the Command Prompt's title bar says 'Administrator: Command Prompt'.

Method 3: Shortcut, AdvancedRun as administrator Windows Vista CMD Shortcut

This shortcut method is my favorite. It is a variation of method 1; the idea is to configure 'Run as administrator', not just for that one session, but permanently.

* Right-click the Command Prompt executable
* Select Properties from the drop-down menu
* Select the Shortcut (tab)
* Click on Advanced (button)
* Tick: Run as administrator
* See screenshot opposite



Vikram Bariya 

Error "Access is denied" when you try to Task Manager Users tab in Windows Vista

Point 1.

Open Task Manager (taskmgr.exe) and click the Processes tab
Click Show processes from all users
When you are prompted for an administrator password or confirmation, type the password or provide confirmation.

(Task Manager now runs with administrative privileges.)


Point 2.

Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
At the command prompt, type taskmgr.exe, and then press ENTER.

(Task Manager starts with administrative privileges.)

How to convert a FAT volume or a FAT32 volume to NTFS

* Click Start, point to All Programs, point to Accessories, and then click Command Prompt.

* At the command prompt, type the following, where drive letter is the drive that you want to convert:
convert drive letter: /fs:ntfs
For example, type the following command to convert drive E to NTFS:
convert e: /fs:ntfs
Note If the operating system is on the drive that you are converting, you will be prompted to schedule the task when you restart the computer because the conversion cannot be completed while the operating system is running. When you are prompted, click YES.

* When you receive the following message at the command prompt, type the volume label of the drive that you are converting, and then press ENTER:
The type of the file system is FAT.
Enter the current volume label for drive drive letter

* When the conversion to NTFS is complete, you receive the following message at the command prompt:
Conversion complete

* Quit the command prompt.


Vikram Bariya

MMC cannot open the file C:WINDOWSsystem32devmgmt.msc

This Issue May Occur When One Or Mare Of the.dll Files that are used by the Microsoft management console are missing or corrupted. these files include the following.

* Msxml.dll

* Msxml2.dll

* Msxml2.dll

To Resolved this issue , follow these steps.
1.click start , click Run , type cmd and then click OK.

2.At the Command prompt , type cd % windir % \System32, And then Press Enter.

Note :- The %windir% folder is the folder where you installed Microsoft windows.

3.Type the following commands. press Enter after each command.

Regsvr32 Msxml.dll


Regsvr32 Msxml2.dll


Regsvr32 Msxml3.dll

4.Type Exit,and then press Enter to close the command prompt window.

5.Restart the computer.