Showing posts with label System. Show all posts
Showing posts with label System. Show all posts

Thursday, October 24, 2013

Advanced Conditional Shutdown

Advanced Conditional Shutdown

Program:

@echo off
color 0A
title Conditional Shutdown.

:start
echo Welcome, %USERNAME%
echo What would you like to do?
echo.
echo 1. Shutdown in specified time
echo 2. Shutdown at a specified time
echo 3. Shutdown now
echo 4. Restart now
echo 5. Log off now
echo 6. Hibernate now
echo.
echo 0. Quit
echo.

set /p choice="Enter your choice: "
if "%choice%"=="1" goto shutdown
if "%choice%"=="2" goto shutdown-clock
if "%choice%"=="3" shutdown.exe -s -f
if "%choice%"=="4" shutdown.exe -r -f
if "%choice%"=="5" shutdown.exe -l -f
if "%choice%"=="6" shutdown.exe -h -f
if "%choice%"=="0" exit
echo Invalid choice: %choice%
echo.
pause
cls
goto start

:shutdown
cls
set /p min="Minutes until shutdown: "
set /a sec=60*%min%
shutdown.exe -s -f -t %sec%
echo Shutdown initiated at %time%
echo.
goto cancel

:shutdown-clock
echo.
echo the time format is HH:MM:SS (24 hour time)
echo example: 14:30:00 for 2:30 PM
echo.
set /p tmg=enter the time that you wish the computer to shutdown on:
schtasks.exe /create /sc ONCE /tn shutdown /st %tmg% /tr "shutdown.exe -s -t 00"
echo shutdown initiated at %tmg%
echo.

:cancel
set /p cancel="Type cancel to stop shutdown: "
if not "%cancel%"=="cancel" exit
shutdown.exe -a
cls
schtasks.exe /end /tn shutdown
cls
schtasks.exe /delete /tn shutdown
cls
echo Shutdown is cancelled.
echo.
pause
exit 

Wednesday, October 23, 2013

Increase your PC performance upto 60%

It's time to Boost up your PC performance:

This method will help you to increase your PC speed upto 60%... 

Follow these simple steps.

1. Start up your computer

2. Open "My computer"

3. Go to "properties"

4. Click on the "Advance" tab

5. Under "Performance" section, click on the "Settings" button

6. Now, note to the "Advance" tab.

7. Under "Victual memory" section, click on the "Change" button

8. Now select Drive "C"

9. Select the "Custom size" option

10. Set the Initial size (MB) to whatever you want 5000 for 5MB, 2000 for 2MB, and so on. But at least, set it to 2000

11. If you Set Maximum Size to 5000 for
5MB it means 5MB of local disk will be used as virtual memory. But it's better to keep it as high as you can before.

12. Click on the "Set" button.

13. Perform this with all other driver also.

14. Click on "OK" button 

15. Again Click on "OK"

16. Click "OK" again.

17. Restart your computer.


That's all.. Your mission completed... 

Install windows7/Vista from USB/Flash drive

How To: Install Windows 7/Vista From your USB/Flash Drive

     The main advantage is that by using USB drive you will be able to install Windows 7/Vista in just 15 minutes. You can also use this bootable USB drive on friend’s computer who doesn’t have a DVD optical drive. The method is very simple and you can use without any hassles. Needless to say that your motherboard should support USB
Boot feature to make use of the bootable USB drive.

Minimum h/w and s/w Requirements:

1)USB Flash Drive (Minimum 4GB)

2)Windows 7 or Vista installation files. (Or *.iso file)

Steps to make bootable USB drive:

1) Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system.
2) Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights.

•       Type cmd in Start menu search box and hit Ctrl+ Shift+ Enter.
•       Go to Start menu > All programs > Accessories, right click on Command Prompt and select  Run as administrator.
•       You need to know about the USB drive a little bit.

Type in the following commands in the command prompt:

 1)   First type DISKPART and hit enter to see the below message.
 2)   Next type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive.

 3)  Next type all the below commands one by one. Here I assume that your disk drive no is “Disk 1”.If you have Disk 2 as
your USB flash drive then use Disk 2.Refer the above step to confirm it.

So highlighted below are the commands you need to type and execute one by one:

SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS
(Format process may take few seconds)
ASSIGN
EXIT

Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it.

4) Next insert your Windows7/Vista DVD into the optical drive and check the drive letter of the DVD drive. In this guide I will
assume that your DVD drive letter is “D” and USB drive letter is “H” (open my computer to know about it).

5) Maximize the minimized Command Prompt in the 3rd step. Type the following command now:
D:CD BOOT and hit enter. Where “D” is your DVD drive letter.
CD BOOT and hit enter to see the below message.

6) Type another command given below to update the USB drive with BOOTMGR compatible code.
BOOTSECT.EXE/NT60 H:
Where “H” is your USB drive letter. Once you enter the above command you will see the below message.

7) Copy your Windows 7/Vista DVD contents to the USB flash drive.

8) Your USB drive is ready to boot and install Windows 7/Vista. Only thing you need to change the boot priority at the BIOS
to USB from the HDD or CD ROM drive(i.e First Boot device option)

Note: If you are not able to boot after following this guide means you haven’t set the BIOS priority to USB. 

Tuesday, October 22, 2013

Output of a command to file

An incredibly useful Command Prompt trick is the use of redirection operators, specifically the > and >> operators.

These little characters let you redirect the output of a command to a file, giving you a saved version of whatever data the command produced in the Command Prompt window.

Let's say you're about to post a computer problem to an online forum, like my computer support forum for example, and you want to provide really accurate information about your computer. An easy way to do that would be to use the systeminfo command with a redirection operator.

For example, you might execute systeminfo > c:\mycomputerinfo.txt to save the information provided by the systeminfo command to a file. You could then attach the file to your forum post.

Step-1>


Step-2>


Step-3>

Sunday, October 20, 2013

Tips to Install Turbo C++ in Windows 7/vista 64 Bit

How to install Turbo C++ in Windows 7/vista 64 Bit ?


1)First Download Turbo C/C++

2) Create a folder named "Turboc++" in your D-Drive.

3) Extract your TURBOC.EXE file by using Winrar. Right-click on the "TURBOC"

file and you can find the option "Extract to TURBOC\".

After extracting, you will notice a folder named "TURBOC" will be created.

Inside that folder "TURBOC" there will be an another folder named "TC"

which contains all the C++ files in it. Copy that folder "TC" into the created

folder "Turboc++".

So in your D-drive Turboc++ folder will contain the folder "TC"

4) Double-click on the shortcut icon "DOSBox" that can be found on your

desktop. A command prompt will be opened with the prompt Z:\>

Now enter the below command and press "Enter"

mount d d:\turboc++\

"Drive D is mounted as local directory d:\turboc++\" should appear.

Now change the prompt by entering the below command.

d: ---> Press Enter.

Now your prompt changes to D:\>

Now enter the below commands

cd tc\bin --> Press Enter. Now the prompt will be D:\TC\Bin>

tc ----> Press Enter.

Turboc++ Editor will be opened. Click on OK.

5) Go to "Options" --> Directories --> Change the path to D. That is

Include Directories path should be D:\TC\Include

Library Directories path should be D:\TC\LIB

Click on OK.

Now again go to "Options" --> Directories --> Save.

6) Hold the "Alt" key and Press Enter to "Maximize" it. To minimize it, again

hold the "Alt" key and Press Enter.

[Note : Don't use the shortcut key Ctrl+F9 to Run the program. You need to do

it manually by going to "Run" --> Run.]