SCCM Batch scripting
Hi All, This is my scenario. Say for a particular application executed using batch files, lets call it BatchA. Now BatchA calls BatchB from within the script. In SCCM I have created separate packages for both batch A and B. Is there a possibility to make it work without task sequences or the "Run this program first" option during program creation? I need to know 'cuz I have a package which calls 5 applications from within the script. Ultimately task sequences might be the solution. but still for knowledge sake, can any script dynamically recognize the package IDs and the applications within and work from there? Thanks in advance!
July 12th, 2011 12:32pm

You could use the "run another program first" option within the program - or better: use a task sequence with multiple "install software" or "run command line" steps. You do not need to know the package ID or directory. The variable %~dp0 will hold the local path or UNC path to the batch (depending on where it was kicked off from). See also Jason's blog: http://blogs.catapultsystems.com/jsandys/archive/2009/08/30/current-directory-in-configmgr-programs.aspxTorsten Meringer | http://www.mssccmfaq.de
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2011 1:04pm

Thanks a lot Torsten!
July 12th, 2011 1:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics