Run a package without a URL

(imported topic written by jprev91)


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= sha1=4b9e832c830182219d1fd7e838c202d4a67b1ea size=5339581 url=http:\example\

end prefetch block


I am not sure what to do after extracting 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.



(imported comment written by jeremylam)

Have you followed the instructions here to manually cache the file on the server?

It might be simpler to also use a simpler “prefetch” statement instead of a prefetch block. You’ll also need to stop the existing action and create a new one.

Also, the “extract” command doesn’t work on zip files, it’s specific to a BESArchiver utility. Here are some instructions and a link:

Hope this helps.