We have two groups in this simple task sequence, the first group copies all files from a package to a directory on your target computer (the computer that you run the task sequence on).
The first step in the group creates the target folder if it doesn't exist, via a command line
cmd.exe /c md c:\somedir
To check if the folder already exists, you have to look at the options tab of that step
The second step actually copies the files by referencing our copy_files package, the clever part here is the .\ infront of our path.
so the command line to do the copying is as follows
The second group in the task sequence is similar to the first except that it creates somedir2 and it only copies the TXT files from our selected package. (This is deliberate so that you can see what happens next..)
Note: In the screenshot of the step above, I am deliberatly NOT including the .\ in front of the path, this is to show you how an advertisements distribution points settings can change the way command lines function.
the xcopy command in the second group is as follows
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.
Let's say you want to copy some files from a package to your target computer, should be simple enough right ?
In the following Task Sequence, copying files from packages - access.xml
copying files from packages - access.xml
we reference a package (called copy_files) which contains some blank files and folders
copy_files.zip
We have two groups in this simple task sequence, the first group copies all files from a package to a directory on your target computer (the computer that you run the task sequence on).
The first step in the group creates the target folder if it doesn't exist, via a command line
To check if the folder already exists, you have to look at the options tab of that step
The second step actually copies the files by referencing our copy_files package, the clever part here is the .\ infront of our path.
so the command line to do the copying is as follows
The second group in the task sequence is similar to the first except that it creates somedir2 and it only copies the TXT files from our selected package. (This is deliberate so that you can see what happens next..)
Note: In the screenshot of the step above, I am deliberatly NOT including the .\ in front of the path, this is to show you how an advertisements distribution points settings can change the way command lines function.
the xcopy command in the second group is as follows
Share this post
Link to post
Share on other sites