sending job scheduling to a distant pc

I need to start some batch files on a distant pc trough the internet and via broadband connection. This pc is behind a modem-routeur-firewall (port 80 and 21 opened). How can I send a task scheduling to this pc to start my batch file (sending previously by ftp).

PS : I succeeded to send a job scheduling to another pc but it was in a local network and with the function 'RASDIAL'. Is there an equivalent to solve my problem ?
yougyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

oBdACommented:
Provided that the file doesn't need to be run immediately after upload, the safest way is probably by using the task scheduler. That keeps you from having to open additional ports on your firewall and from sending administrator passwords over the internet.
Create an account on the machine (or the domain, if present), for example "SrvFTPTask"; give it the necessary rights. Use this account to schedule a task to run, for example, every 15 minutes. The task to run would be a batch file that looks for the presence of your new batch, and, if found, executes it and then either marks it as executed or deletes it.
Can you provide some more informations about what you want to achieve with the uploaded batch?

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
yougyAuthor Commented:
Thanks for your reply. I think your solution is the most secured.
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 2000

From novice to tech pro — start learning today.