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.
run a batch on a server from a client
Moderator: DosItHelp
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: run a batch on a server from a client
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.
Another AFAIK, DOS alone can't make a remote computer run a batch file on itself via a local computer.
Re: run a batch on a server from a client
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.
-
- Posts: 319
- Joined: 12 May 2006 01:13
Re: run a batch on a server from a client
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.
All the while, your user doesn't need a batch file to execute your remote batch.