Hello
I created commands to prefetch and extract through the Windows software distribution wizard.
After that, I try to copy the folder, but I can’t find the folder under the client folder because of the lack of extract and it fails.
To summarize, it is a copy operation after directory distribution!
What could have gone wrong?
Below is the Script.
prefetch 40cb216dc5b14e7828389f33e1afc3ab63b2629b sha1:40cb216dc5b14e7828389f33e1afc3ab63b2629b size:5363551024 http://itmsgtem2:52311/Uploads/40cb216dc5b14e7828389f33e1afc3ab63b2629b/Win10_21H1_Korean_x64.tmp sha256:6bae0e7b9099391a521cfc5646339d902d23fa37626efe5d83c9f48d01742771
extract 40cb216dc5b14e7828389f33e1afc3ab63b2629b
waithidden cmd /c xcopy /e “__Download\Win10_21H1_Korean_x64” “C:\test”
When the above command is executed, exit code 4 is generated.
waithidden cmd /c xcopy /e “__Download\Win10_21H1_Korean_x64” “C:\test”
would be better written as:
action uses wow64 redirection false
copy "{(client folder of current site as string) & "\__Download\Win10_21H1_Korean_x64"}" "C:\test"
Point to note, the extract of Win10_21H1_Korean_x64.tmp must contain a folder named Win10_21H1_Korean_x64 otherwise this wont work
@FatScottishGuy
It was executed after changing to the script you provided, but it failed at the last line.
I have a question, if extract is completed, shouldn’t there be a “Win10_21H1_Korean_x64” directory under which folder in __BESClient?
I can’t see the folder even when I search in explorer.
The __Download folder clears itself after use so likely that the file / folder was deleted
You could extract it to another location for example:
extract 40cb216dc5b14e7828389f33e1afc3ab63b2629b “C:\test”
Then run whatever you want from there instead. This way it wont clean it up.
@FatScottishGuy
As you said, I extracted it right into the path and it worked!
thank you!!!
You can also get it by specifying the route like this!!
I’m learning. thank you.
1 Like