Right now: Live recording of the Tech Support Guy Show!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
at command help


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
G-Stress's Avatar
Senior Member with 112 posts.
 
Join Date: Feb 2008
20-Apr-2008, 09:36 PM #1
at command help
Having a bit of an issue not sure what exactly the problem is. What I'm trying to do is create a scheduled task for a reverse vnc connection to automatically connect to me or at least try to every 30 minutes or at a specific hour throughout the dat, etc.

I would use the windows task scheduler but it requires authentication to run a task. I create the task just fine using the at command (this is my first time using the at command) but it just never runs the task.

Code:
at 00:00 %windir%\reversevnc\run.bat cmd.exe
Code:
at \\%computername% 00:00 /every:M,T,W,Th,F,S,Su cmd "%windir%\reversevnc\run.bat"
Then in a shell just typing "at" it displays the job added no problem it just doesn't run it.

run.bat
Code:
@echo off
winvnc.exe -connect hostname.dyndns.org:5500
exit
TheOutcaste's Avatar
Computer Specs
Senior Member with 1,627 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
21-Apr-2008, 12:15 PM #2
Quote:
Originally Posted by G-Stress View Post
Code:
at \\%computername% 00:00 /every:M,T,W,Th,F,S,Su cmd "%windir%\reversevnc\run.bat"
That should be
Code:
at \\%computername% 00:00 /every:M,T,W,Th,F,S,Su cmd /c "%windir%\reversevnc\run.bat"
Also, "%windir%\reversevnc\run.bat" does exist on \\%computername%, and not just on your PC, right?

When you run cmd /? look closely:
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]

When using string, you must use either /s or (/c or /k)

HTH

Jerry
G-Stress's Avatar
Senior Member with 112 posts.
 
Join Date: Feb 2008
21-Apr-2008, 06:10 PM #3
hmmm... I guess that makes sense I did just recently learn that little trick when running ipconfig directly from run to do it cmd /k ipconfig. Anyhow for some reason this still will not connect to me.

When using the path %windir%\reversevnc\run.bat it did nothing. When using the .exe

%windir%\reversevnc\winvnc.exe -connect 192.?.?.?:5500

it beeps when it should be running and in scheduled tasks it shows it's running, but it doesn't connect to me. It shows it's running as the SYSTEM user. This will work fine if I specify the currently logged on user it will run just fine, but other then that it won't

Oh thanks for the quick reply and all help, advice I did also try /k and /s if I manually run the bat file it connects so I assume it has something to do with the SYSTEM account.

Last edited by G-Stress : 21-Apr-2008 06:24 PM.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:55 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.