Jump to content
Ketarin forum

Create target directory before downloading a file?


thekonfuser
 Share

Recommended Posts

I use Ketarin on multiple machines and have added about 300 applications in the list. I wish to create the target directory (if missing) before downloading an update. I am using autoit for this purpose. I am executing the following command before downloading:

 

CreateDir.au3 {target}

 

But this doesnt provide the target path due to which the script is unable to create the directory. I have tried using multiple parameters like {file:directory} etc but they all failed. Is there a way of passing the target directory to the script before initiating the download?

Link to comment
Share on other sites

Maybe I'm misunderstanding your issue, but Ketarin already create directories that you specified in the settings of the job (first tab, the edit box at the bottom), so why do you want to do something yourself that Ketarin already does?

 

Other than that, using the {file} variable which contains the path to the downloaded file before actually having downloaded it has very bad odds to work ;)

 

And to create a directory from the command line, Windows has the built-in command mkdir "{target}"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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.