I’m totally new to Powershell, and I’d like to ask what is the absolutely simplest way to do this?
If possible no third-party apps at all. Simply I’d like to call test.bat from a PowerShell script, no window, completely silent. Batch periodicallyy copies files from one place to another, nothing else.
Thank You so much if you can help me!!
I’ve done this from VBScript before but that is going to get deprecated soon.. so I need to do the same with PS. This was my one line vbs code in a .vbs file, worked perfectly:
CreateObject(“WScript.Shell”).Run “C:test.bat”,0,True
Soldiers is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.