Monday, December 24, 2012

REMOTE SHUTDOWN OF YOUR PC FROM MOBILE

most of the times we forgot shutdown our pc/laptop
on that time we have number options , onr option that i used is using DROP BOX
                        
                         
If you forgot to shut down your PC when  departing from your home or office and suddenly 
realized about that after traveling a long distance, you would return and then shut down your PC. To get rid from such situation you can use Dropbox to remotely shut down PC or notebook from Mobile Phone.Here is 
the complete procedure for Windows 7 (Windows XP users can follow  how to Remotely Shut Down Windows XP From Mobile Phone via Dropbox).

Requirements

 1. Your computer must be pre-installed with Dropbox. If not then install install Dropbox.

     https://www.dropbox.com/downloading?src=index 

2. The computer should be connected with internet. 

3. Internet enabled mobile phone e.g Android, iPhone, Nokia mobile phones etc. 

4. A simple script to check for a file in your Dropbox folder. Download the zipped file and extract it at any location of your computer.

small introduction of drop box:

Dropbox is a great free service that allows you to share up to 2 GB of files over the internet by uploading at your Dropbox account. If you want greater than 2 GB space then you have to pay.


Dropbox comes with the application by which you can drag and drop any file in your local drive even you are offline. Dropbox will automatically synchronize  them whenever your computer will be connected to the internet.

How to install Dropbox

1. First download the Dropbox application from the link below:

2. Double click on the downloaded file and follow the onscreen instructions.
After the installation the Dropbox icon will be shown at the system tray. Double click on it to access.

How to use Dropbox

1. Now your computer is ready to upload any file to your Dropbox account through the “My Dropbox” folder. Evey thing that you put in this folder, they will be synchronized to your Dropbox account.
2. If you want to share any file by sharing the link, just put that file in the Public folder under the “My Dropbox” folder. Now right right click on the file and choose “Copy public link”.
Note:  You can only share the files which are under the “Public” folder.
 
3. After that, you can share the link by email or anything else. The file can be viewed or downloaded by clicking on the link or pasting the URL in the address bar of the browser.
Apart from file sharing there are many applications of Dropbox. We shall  discuss them in the upcoming posts. Keep reading

process 

->after extracting te file , you can find two file you need to edit

1. remote_shutdown.vbs 2. trigger.bat under the folder drsd.
Just right-click on the remote_shutdown.vbs file and select “Edit”. You will get the following code in your notepad editor or some thing else.
Dim fl1 Set fl1 = CreateObject("Scripting.FileSystemObject") If (fl1.FileExists("your_dropbox_folder_path\secret_file.txt")) Then Dim oShell Set oShell = CreateObject("WScript.Shell") 'shutdown, wait for 5 seconds, force running apps to close oShell.Run "%comspec% /c shutdown /s /t 5 /f", , TRUE Msgbox "You will be shut down shortly" End If
Change the highlighted part with your Dropbox account path (Don’t remove the quotes). By default it should be C:> Users> user_name> Documents>My Dropbox. After editing the line it should look like
If (file1.FileExists("C:\Users\user_name\Documents\My Dropboxsecret_file.txt")) Then
Save the file by pressing CTRL + S. You can change “secret_file” with some secret name. Actually, the above code will search for this file in your Dropbox folder. If it finds that, it will command the computer to shut down.
Setting your PC Task Scheduler for triggering the above batch file
1. Press Win key and type “task scheduler” at the search box. Right-click on “Task Scheduler” > select “Run as administrator”.
dropbox-task-scheduler
2. In the upcoming window click on “Create Task” from the right pane.
dropbox-create-task
3. Give a reasonable name of the task and check the box to “Run with highest privileges”.
dropbox-task-name
4. Head to the “Trigger” tab and click on “New..”. A pop up window will appear.
5. Now keep the “Begin the task:” option as “On a schedule”, choose the “Daily” button under Settings. At the starting time option, delay the time about 10 minutes.   Under Advanced settings check the box to “Repeat task every: 5 minutes,  for a duration of :Indefinitely” (Set the values from the drop down menu) and finally, click on OK.
dropbox-trigger
6. Flip to “Action” tab and click on “New”. Set the “Action: Start a program”, at the “program/script” box locate the batch file trigger.bat) by clicking on the “Browse” button and click OK.
7. Finally, head to “Settings” tab and check the box to “Run task as soon as possible after a scheduled start is missed”.
dropbox-task-settings-tab
8. Now click on OK.
Your computer is now completely configured. When you are outside and your computer is on and connected with the internet, just log-in to your Dropbox account from your mobile phone or any other computer, upload a text file with the same name as you specified earlier to Dropbox folder (secret_file.txt).
You are done! your computer will be shut down in next 5 minutes. An you will get detailed log at test.txt file in the same directory drds.
shut-down-mobile-computer
Note: Immediate after the next time of logging into your PC, delete the secret_file.txt from your Dropbox account, nevertheless your computer will again shut down. You can also build your schedule task settings as such a way, so that the task starts after a specific time every day. 
Tip 1: Easiest Way To Run Multiple Instances of Dropbox in Windows 7 .
** You can use Dropbox to start a program on pc using mobile.