Active7 years ago
I have few computers connected to the network and I want to create batch files to automatize the process of working with them. I have already created one used to shutdown computers at once. It is very simple I ll just post it for the sake of argument.
Run Exe Through Command Prompt
How to Run Exe from Cmd on PC or Mac. This wikiHow teaches you how to use command lines in Windows Command Prompt in order to start and run an executable (exe) file on your computer.
Now I want to execute programs on these machines. So lets say there is 'example.exe' file located 'Slave1-PCdexample.exe'
using
runs it on my computer through network and i didn't come up with anything else. I dont want to use any psexec if possible. Help would be much appreciated.
Peter
Peter Kottas
migrated from stackoverflow.comSep 22 '12 at 21:49
This question came from our site for professional and enthusiast programmers.
2 Answers
If you really can't use psexec, then you could probably rig something up with schtasks (better) or at (worse).
However, I think you'd probably spend more time trying to get those to do what you want than you'd spend in setting up PsExec. Psexec is really quite simple to use and it only needs to be available (as an executable file; no installer needed) on the machine doing the controlling, not on each machine being controlled.
At its simplest, PsExec is very simple:
Also, Mark Russinovich (PsExec's author) has written a primer that 'describes how PsExec works and gives tips on how to use it'. Beyond that, 'PsExec /?' and the manual do provide quite good information.
Mattias AnderssonMattias Andersson
PSEXEC
is very easy and simple to use. You use it basically in the same way you use CALL
or START
(except you give it the target computer and a username and password if needed), and is capable of even launching GUI applications, though you won't be able to see or control it.Apple itunes cd burner library free download - Apple iTunes (Classic), iTunes iSync, iTunes CD Printer, and many more programs. MP3 & Audio Software. Apply Filters. Itunes cd burning free download - Nero Burning ROM 2019, Ashampoo Burning Studio Free, MP3Bee CD Burning Tool, and many more programs. Burn Cd Itunes, free burn cd itunes software downloads. Express Burn Mac is a free CD burning program that lets you create and record audio and data CDs Express Burn Mac is a free CD burning program that lets you create audio and data CDs. With Express Burn you can record a data or audio discs quickly and easily by dragging the files you want onto the icon and clicking Burn CD. Free itunes cd burner software.
When used to launch a command-line program with normal
STDIN
/ Console input and STDOUT
and STDERR
output, the program or batch file will act as if you are simply running it on your own machine.I was up and using
PSEXEC
to run diagnostics, defrag.exe, anti-virus programs, and for gathering system information in a shop with over 2,000 PC's without more introduction than PSEXEC /?
within a day.Run:
And you've got the same interactive Command Prompt on
COMPUTER
that you'd have if you walked over and typed ALT+RCMDENTER. Maybe a little slower, but it's not noticeable unless you're scrolling through a massive amount of text. Even over 10 Base-T it's not too bad.Run Exe Through Cmd Download
As an Network Administrator able to use the same username / password on nearly every computer, I found that all but the most locked down computers, I didn't even need to use a username or password. This..
..was usually sufficient.
To use your example type:
Or:
Run Exe Through Cmd Games
PSEXEC
will prompt you for a username and password if they are needed.The first time you connect to a computer you may need to (or get someone else to) allow the connection via a Pop-Up on the remote system.
James KJames K