Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Please help me write a script

02 Jul 2011   #1
Doc Holliday

7 Ultimate/Ubuntu
Please help me write a script

Hey all,

Long long time lurker, first time poster. I'm leaving the country for vacation and I'd like to setup a script that runs every hour to check and see if my VNC Client is running. I use this VNC client to remote into my computer from my phone and the thought of not being able to do this while abroad doesn't sit well with me. From time to time, the client crashes and the only thing I can do is restart it while physically in front of my host machine. Essentially I'd like a script that can do the following:

Check running programs for VNC proccess and service
If running, do nothing
If not running, start
If running but non-responsive, force kill and restart
Repeat hourly

What are some of the ways this is possible? Just an FYI, I use UltraVNC for this. Let me know if any other information is needed. Thank you in advance for your help.

My System SpecsSystem Spec
03 Jul 2011   #2
PooMan UK

Windows 7 Ultimate 64bit

Hiya pal and welcome to the forums

Why not have a looky at Team Viewer - no need to mess about with scripts etc. you can use the web based connection method to remote your system ... and the best thing is, it's free for non-commercial use
My System SpecsSystem Spec

 Please help me write a script

Thread Tools

Similar help and support threads
Thread Forum
Dos script help
Hi, Below is my folder path, D:/Sample I have .sql files in that folder and i need to get the file names based on modified/created date i pass. for ex : i need to get the file names created/modified on or after 10/01/2014(mm/dd/yyyy). Can any please give me some sample script to make this...
General Discussion
How to run a .bat (script) file
Hi All, I have two .bat files (script) that I'd like to run from their location in command mode with admin. privl. How do I do this? Best, ms
General Discussion
Printing from x64 using a script
My office printer, HP Color Laserjet CM6040mfp, prints nicely when I just print "normally" from Word or Excel. When I try to automatize it with a .bat file, it doesn't work. I have x64 Win7. Another computer has x86 Win7 and it works nicely. The error I receive is: "Operation could not be...
In need of a script...
I am looking for a script which can delete cookies, Windows + browser cache automatically on a regular (scheduled) basis. Can this be done through Windows itself or would i have to implement a custom script or something? I am looking to replace CCleaner and similar software package(s). Just now...
Performance & Maintenance
can't run script
Having a problem run this script at 1am /every:Friday c:\windows\shutdown.exe /l when I run it a black screen pop up and then disappears so I know the script is running but nothing is happen. I have ran it from the command line and it say access denial but I am in the local administrator...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:30.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App