(imported topic written by jprev91)
Hello,
I hope you can help me. This is my first time writing a custom template and I am not sure what I am doing. I have a zip file that needs to go out to clients, get extracted and run a .bat that is contained in the extracted contents. I have looked through the site and found that copying from a network share is not a good idea, but I don’t have a valid URL to host the files from. I thought I could fake it out by putting a fake URL and precacheing the file on the server, but I get jobdownloadfailed in the client log and I can see it trying to connect to the fake URL so I am sure I am doing something wrong. Adding a webserver to host the files is not an option.
prefetch block
add prefetch item name= batch.zip sha1=4b9e832c830182219d1fd7e838c202d4a67b1ea size=5339581 url=http:\example\batch.zip
end prefetch block
extract batch.zip
I am not sure what to do after extracting batch.zip. I was trying to see where it was extracted to so i could add more lines to run the batch file inside.
Any help would be very appreciated.
Thanks,
Jessie