run a batch on a server from a client

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
express
Posts: 6
Joined: 24 Aug 2010 03:25

run a batch on a server from a client

#1 Post by express » 02 Sep 2010 09:34

hi
i have a batch file on a server that i want a user to be able to run remotely.
can i write another batch file that calls on the remote batch to run as per permissions on the server?
i do not want to give the user remote access to the server as they are not trusted with access, but i do need them to be able to execute the command.
if i just map the drive to the users competer that the batch file resides and run it will it run as per permissions/compatibility on the server?
don't have time to test at the moment or i would do and not ask such a dumb question.

cheers.

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: run a batch on a server from a client

#2 Post by orange_batch » 02 Sep 2010 09:53

AFAIK, running a batch file from a user's computer will run it under the user's context since Windows still acts like big lord overseer.

Another AFAIK, DOS alone can't make a remote computer run a batch file on itself via a local computer.

express
Posts: 6
Joined: 24 Aug 2010 03:25

Re: run a batch on a server from a client

#3 Post by express » 02 Sep 2010 09:57

the batch file runs a process on our lims database on the lims server. i want one user to be able to run this batch file (the process in lims) without actually having to be on the server. i'll test it out tonight from my machine when everyone has gone home, the daily backups have run and i have a free run at the server.

ghostmachine4
Posts: 319
Joined: 12 May 2006 01:13

Re: run a batch on a server from a client

#4 Post by ghostmachine4 » 02 Sep 2010 19:26

you don't have to specifically let them execute the batch file remotely using a batch. Set up an interface such as a Web interface. Let the user click on a button. This button can be programmed to run your batch directly at the back end, or you can store the button click into a database table, then at the back end, poll for this database table, check for the button click value. If its there, execute your batch.

All the while, your user doesn't need a batch file to execute your remote batch.

Post Reply