Jump to content
Ketarin forum

{file} only for commands, but {var:function:....} not for commands?


appyface
 Share

Recommended Posts

The Ketarin doc states that {file} may only be used in commands, and that seems to be true. But it also appears that functions cannot be used in commands? Hmmm....

 

I have a command script to be executed after every file downloaded to disk. I need to pass two parameters to it: The full path/filename of the downloaded file, and a slightly modified string created from that same path/filename.

 

This is the command line I want to use:

script.bat {file} d:\newdir1\newdir2{file:replace:d:\oldpathdir\:\}

 

assuming {file} = d:\oldpathdir\node2\node3\somefilename.ext the above command line would pass the two parameters exactly as I want:

Parameter1: d:\oldpathdir\node2\node3\somefilename.ext

Parameter2: d:\newdir1\newdir2\node2\node3\somefilename.ext

 

Unfortunately, this commandline is submitted by Ketarin as this:

script.bat d:\oldpathdir\node2\node3\somefilename.ext d:\newdir1\newdir2{file:replace:d:\oldpathdir\:\}

 

As mentioned above, I can't use {file} in Ketarin variables. I tried! (And I wish I could, I have MANY uses for it). So what I want to do doesn't seem possible at the moment? Or is it, and I'm just not seeing it...?

 

Thanks in advance for any help. Regards,

--appyface

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.