Just installed SCCM, have a management server, and 3 three DP's in different sites which link via AD sites. My problem is related to software installation within a Task Sequence.
Question: When running "Run Command Line" with a linked package via TS; I am not downloading the package file to the client, so how do I copy files from the package to the client if I do not know what the source path is? Reading on the net I could run a VBScript to learn the path that the package is running from:
'Set Current Script Directory
strCurrentDir = Left(Wscript.ScriptFullName,(InstrRev(Wscript.ScriptFullName, "\") -1))
I have also played with %~dp0, but no sucess. The same applies if I run a batch file within a program linked to a software install.
But is there any other way, I have no problems if the package just uses a simple MSI file but on some installations I need to copy files.
Sorry I am just going round in circles and getting nowhere.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi Everyone,
Just installed SCCM, have a management server, and 3 three DP's in different sites which link via AD sites. My problem is related to software installation within a Task Sequence.
Question: When running "Run Command Line" with a linked package via TS; I am not downloading the package file to the client, so how do I copy files from the package to the client if I do not know what the source path is? Reading on the net I could run a VBScript to learn the path that the package is running from:
I have also played with %~dp0, but no sucess. The same applies if I run a batch file within a program linked to a software install.
But is there any other way, I have no problems if the package just uses a simple MSI file but on some installations I need to copy files.
Sorry I am just going round in circles and getting nowhere.
Thanks
Richard
Share this post
Link to post
Share on other sites