Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

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 ?
0
yougy
Asked:
yougy
1 Solution
 
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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now