How do I run a shortcut using Task Scheduler?

Task Scheduler (Windows XP Pro) will not run a shortcut for me.  I think the problem maybe that it is a VPN connection and a VPN shortcut does not have a specific exe/com/bat etc. program extension.  If there is a way of finding the exe that runs any network connection then that may be the key...

When you use the wizard to browse for program it doesn't let you go into network connections and pick one therefore I dragged a shortcut to my desktop and selected that.  If you do properties on the shortcut it gives you no information as to what the shortcut points to.

Does anyone know how to do this please?

Thanks for any help.
RobhexAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KenneniahCommented:
Even though it's technical not a dial-up rasdial.exe should do this for you. The format would be rasdial.exe ConnectionName
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KenneniahCommented:
You can also specify username and password to it.

USAGE:
        rasdial entryname [username [password|*]] [/DOMAIN:domain]
                [/PHONE:phonenumber] [/CALLBACK:callbacknumber]
                [/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]

        rasdial [entryname] /DISCONNECT
0
RobhexAuthor Commented:
Thank you very much, solved my problem superbly...

Rob.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

KenneniahCommented:
Glad to help!
0
etchingCommented:
I want to run a Scheduled Task in the background.  That is, without a visible command-shell window on the screen.
I can manually run a shortcut minimized, but I can't get the Task Scheduler to run the shortcut.  What to do?
It's a Tcl script that I want to run on WinNT 4.0.

Thanks,

Eric
0
KenneniahCommented:
Hi Eric,
To get answers to this question you should post it as a new question. However, the easiest way to not have a shell show up is to use alternate credentials for the task. If the username you used to schedule the task is not logged in, the window won't be displayed.
0
etchingCommented:
I didn't post a new question because the rasdial response didn't answer the original point of the question.

Anyway, in the mean time I found out that having Task Scheduler run the "runh.exe" utility freeware program
solved the problem.  It seems to work as I wanted.  Any side effects I should be aware of?

Eric
0
KenneniahCommented:
I don't think I can see any side effects that would cause any problems.

"I didn't post a new question because the rasdial response didn't answer the original point of the question."

It doesn't matter whether you thought the answer fit the question or not. It was Robhex's question and it was answered for him. What he was really looking for was a way to schedule a VPN connection and that's what he got. The point it is though that it was HIS points and it was answered to HIS satisfaction. If you want to know more of a solution you need to spend YOUR points as it's not fair to sponge off of his. Also you are off topic, this is a Windows XP forum not NT 4.0.

Don't take this the wrong way, I'm not upset, just trying to explain how EE works a little bit.
0
RobhexAuthor Commented:
I've no problems you "sponging" off my points etching!!!  Just kidding, I hope your problems are solved now too.  EE is a fantastic knowledge base, I use it for work purposes and I might even start paying for the service if I can get my company to shell out...

This isn't a forum for how good EE is and how to use EE so I'll shut up now, sorry and thanks for solving my query.
0
KenneniahCommented:
Opps, after rereading what I wrote it sounded harsher than I meant, so sorry for that etching :)

The main thing which I forgot to say, is that posting in a closed question usually won't help you much, since noone browses through closed questions. The only reason Robhex and I read your post is you get an email when someone posts to a question you participated in. It no longer shows up in the waiting to be answered list, so that's really why you should start a new one, so that other people will be able to try and help you.

Robhex - talk about anything you want LOL, I must have been in a bad mood or something yesterday :P Or maybe it was the beer at lunch....
0
etchingCommented:
Hey no problem...To be honest, I would have posted a new question if I knew there was a distinction between CLOSED
and WAITING TO BE ANSWERED questions (I've seen some posting programs that automatically push replies to a post
to the top of the stack).   Excuse me if I'm blind, but is the question marked CLOSED somewhere on this page?
I didn't see anything, so that's why I posted here...My bad...
And is there a place to see the WAITING TO BE ANSWERED questions?  Sorry, I'm new here :-)

Happy Thanksgiving all!

Eric
0
KenneniahCommented:
Yeah it doesn't really say closed, but if it's been answered you'll see a grade in the first post, and one or more of the comments will be marked as accepted or assisted answer.

On the list of topics page it depends which view you are in. In "Expert Mode" there are 2 different lists. One that says Questions awaiting answers and a second one called Previously Answered Questions. In "Normal Mode" there is just the Questions Awaiting Answers.

If you came from a search, then the only way to tell is by looking for the grade or accepted answers. The "Old Look" was a little better for distinguishing. At the top is says Type: and then unlocked for open, and PAQ for previously answered question. If you want to see the old look go to http://oldlook.experts-exchange.com

BTW, is that runh.exe still working good for you? I can't remember how much different NT 4.0's task scheduler was than XP's, but XP's works with most shortcut (lnk files), just usually not with shell shorcuts (ones using CLSID's instead of pointing to a particular file). I just can't remember how well the NT4.0 scheduler handled them.
0
etchingCommented:
OK, I missed the "Accepted Answer" when I read the question the first time.  I'll post new questions from now on!
Yeah, I'm ran runh.exe from the Task Scheduler a few times already.  Seems to work fine, though my script only takes
a couple seconds to run, so I can't say yet if it would work well for longer scripts.  I couldn't get Task Scheduler to run
the shortcut.  The name of the link is "alert.tcl.lnk".  Maybe it's because I'm running a Tcl file because I get a
"Could not start" when I try to run the filename "alert.tcl.lnk".   Note that running the shortcut manually works perfectly
fine and minimized too.   Also, I'm running on a corporate network, so it's doubtful that I would have access to create
another user account in order to use your suggestion.

Eric

0
etchingCommented:
Oh, another update...I've been running "runh.exe" from the Task Scheduler every two minutes the past couple days.
Works like a charm with no ill effects (so far anyway)!  Also, the shortcut problem seems to be a bug in NT Task
Scheduler.  I had no problem at all getting NT Outlook 2002 to run a shortcut (thus no need for runh.exe there).

Eric
0
KenneniahCommented:
Cool, thanks for the info. I'll have to remember runh.exe if I run into a similar situation.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.