Recently, I needed to run a batch file on some SCCM clients. What I needed to do was to run a batch file at the startup of the computer. So, there would be 2 batch files. The first batch file would copy the second batch file to the startup. Also the second batch file must run whoever logs on to the computer.
![]()
First batch file name is filecopy.bat, it copies SystemStartupProc.bat to startup folder
An actual file format conversion using one of the methods described above must take place in most cases. Given that the.BAT files are just text files with a.BAT extension, however, you can rename it to.TXT to open it with a text editor. Remember that doing a.BAT-to.TXT conversion will prevent the batch file from executing its commands.
copy /y “%~dp0SystemStartupProc.*” “C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup”
Call An App From A Bat File Mac Free
Second batch file name is SystemStartupProc.bat, It closes a process named explorer.exe whenever user logged on
Call An App From A Bat File Mac Download
taskkill /f /IM something.exe
These 2 files are located on a shared folder named Files2Copy (W:SourcesPackagesSystemStartupProcFiles2Copy) on the SCCM Server.
We can create the package, give a name to it and show the path to the folder.
Open Any Files App Mac
In Command Line, just type in the file’s name to be run
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |