Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have 2 PC's on my LAN, PC1 and PC2.
PC2 has a Shared Folder with read & write access; \\PC2\Shared_Folder\
I have a Batch File on PC1:- C:\>batch.bat
I want to execute the batch file using Command Prompt from PC1 on remote PC2.
Note: Cannot Install any Software on any of the PC's and only windows file sharing is on between the PC's.
Thanks in Advance.
One of the common ways to do this is to use the PsExec tool from Windows Sysinternals:
PC1 Prompt> psexec \\PC2 \\PC1\Shared_Folder\Batch.cmd
Note: What this hides from you is it does install a program on PC2. It does so automatically, but it still requires sufficient access on the target machine to access \\PC2\ADMIN$
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Hye , where can I run my program in bash? I writed a code in bash and I want to check that it's really works , so how can I do it?
I tried to search online compilers in the internet , but my program creates folders (by mkdir for example) so and it's not allows me to see the folders.
Note: My computer's operating system is windows.
You can run bash on Windows by installing the Linux subsystem (Windows 10) or by installing Cygwin or by installing GIT for Windows (which includes bash).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm trying to create an .exe file that shuts down a remote computer using VB.NET.
I can achieve this using the shutdown command from a .bat file but my goal is to achieve this using an .exe file which takes a computer name and reboots it.
Is this possible?
If so, how should I do it?
I assume that you have a program asking for a IP in a textbox.
So, the easiest way to do this is to run this code after the user finishes typing the IP:
Process.Start("shutdown.exe -s -t 0 -m " & TextBox1.Text)
Now, this is the most simplistic way of doing so and I haven't tried out this code, so I can't guarantee you that it works. I'd also recommend you to add validation to check if the user input is a IP.
I hope this helped you. -Luca
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have two machines A and B. Machine B has perl installed and scripts are placed in a shared directory. Machine A doesn't have perl installed (I don't want to install perl on this machine). There is some automation running in Machine A and that automation wants to trigger perl scripts in Machine B by passing some parameters.
Is this possible? What is recommended?
Thanks
There's probably more possibilites, but from the top of my head:
Mark Russinovich's psexec (notes#ss64.com)
the Windows Management Instrumentation Commandline tool wmic (notes#ss64.com)
As long as the machine on which the perl scripts are to be executed has perl installed, it's not a problem if the caller machine doesn't.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a program installed on windows 7 in my laptop. I wish to install the same program on windows 7 in my desktop. unfortunately, I don't have the source file with me anymore. How can I copy the entire program from one machine to another machine and make it run?
It depends on the program if that's possible or not.
You would have to know, which parts the installer copied to your computer and to which directories. Even then it is possible that the installer checked for prerequisites, found them on the laptop, but are missing on the desktop computer.
You can try to copy the files from the %ProgramFiles% directory, but it is poor luck if that works and you can't be sure that it works correctly. So your best option is to organise the installer package again.
see How to Copy a Program From One Computer to Another Without a Startup Disk.I hope it will work.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Is it possible, in a Windows batch file, to test if a certain drive letter was mounted by TrueCrypt?
I think this is not possible. You could get much information with wmic logicaldisk but nothing will indicate that Truecrypt assigned the drive letter.
As an Idea: (for anyone still finding this post)
You could make this C# Script over at the post #18021118 (which accesses truecrypt to retrive mount information) (there is also a VeraCrypt version over there.) ...
into a commandline tool to be used from your windows batch (added a simple example here: http://github.com/BananaAcid/VeraCrypt-Cmd - replace the get mounts file with the one from the readme within)
or use it directly with powershell
or with an additional binary wich executes scripts on the windows NET Framework without compiling: cs-script.