SCCM - Batch Files


Batch Files within SCCM


Credit to - http://www.ntcenter.ca/tools/sccm-sms-and-batch-scripting

When creating batch files within SCCM applications/packages people sometime have problem with the start-in folder to get around this use the %~pd0 variable .

EXAMPLE

Install_CMTrace.cmd

pushd %~dp0
COPY %~dp0cmtrace.exe C:\Windows\CMTRACE.exe
popd
EXIT


Comments