Copy folder question

(imported topic written by cstoneba)

I want to create a fixlet does the following but I don’t know where to start.

  1. package a folder (similar to what the Windows Software Distribution Wizard does)

  2. downloads that folder to the client

  3. extract the folder

(imported comment written by BenKus)

Hey cstoneba,

Probably the easiest thing to do will be to use the software distribution wizard to package the files and then edit the resulting task… basically what you will do is remove the line in the actionscript:

waithidden __Download\blah.exe

and replace it with:

waithidden cmd.exe /C copy /Y __Download*.* C:\someloocation\

Ben

(imported comment written by cstoneba)

this is what I have:

download http://xxxxx.chs.chsroot:52311/Uploads/c1395cb19f0eaa74a186c52c77938525f03917df/Test.tmp

continue if {(size of it = 2779049 AND sha1 of it = “c1395cb19f0eaa74a186c52c77938525f03917df”) of file “Test.tmp” of folder “__Download”}

extract Test.tmp

waithidden cmd.exe /C copy /Y __Download*.* C:\Test

My question is, what is test.tmp? Will that be the folder that it oringinally merged into the single hash file?

(imported comment written by BenKus)

Yes. test.tmp is effectively “test.zip” (but using compression algorithm) with all the files you included in the software distribution wizard… The “extract” command should put all those files in the __download folder…

Is it working?

Ben

(imported comment written by cstoneba)

yes, it is. thanks