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

All Courses

From novice to tech pro — start learning today.