Jump to content
Ketarin forum

Ketarin Commands


iliaszou
 Share

Recommended Posts

Hello guys. I want to do something special. I want to copy medicine for apps to temp and then move it again to the new setup folder. I have tried something but it doesnt work. Can somebody help me? I have used these commands.

 

Before Downloading

MOVE /Y "{file:directory}\Patch.exe" "%temp%"

After Downloading

MOVE /Y "%temp%" "{file:directory}\Patch.exe"

I think i should change the "file:directory" to something else.

Link to comment
Share on other sites

Hi iliaszou! Is this what you are looking for?

 

Before downloading:

MOVE /Y "{file:directory}\Patch.exe" "%TEMP%"

After downloading:

MOVE /Y "%TEMP%\Patch.exe" "{file:directory}\"

As far as I remember you need a backslash after {file:directory}

 

And if you want to keep it 100% portable, create a temp directory in your file directory and delete it after your file was downloaded:

 

 

Before downloading:

MD "{file:directory}\temp"
MOVE /Y "{file:directory}\patch.exe" "{file:directory}\temp\"

After downloading:

MOVE /Y "{file:directory}\temp\patch.exe" "{file:directory}\"
RMDIR /S /Q "{file:directory}\temp"
Link to comment
Share on other sites

Thnx for your reply necrox. I want to do something like this: I have a folder named CCleaner 4.19.4867 inside this folder i have the setup and one License.zip. The thing i want to do is when i press update to remove the old folder and setup and download the new version CCleaner 5.00.5050 placed CCleaner 5.00.5050/ccsetup500_slim.exe and CCleaner 5.00.5050/License.zip. I hope u understand my example. How can i do this? Thanks in advance

Link to comment
Share on other sites

If you want to keep the version within your folder name that's what I would use (hope it works):

 

 

The app:

appixy8w.png

 

To use the version number as part of the folder name, use CCleaner {version}.

If you don't want to use categories or global variables for your download path, simple use D:\{appname}\{url:basefile}.{url:ext} for example.

 

 

The version:

versiondxzdw.png

 

Contents from URL:

http://www.piriform.com/ccleaner/download/

Use regular expression:

(?<=versionHistory.*?v)[0-9.]{2,} 

The download:

urlvre19.png

 

Textual content:

https://www.piriform.com/ccleaner/download/slim/downloadfile

The commands:

commandsf2d7n.png

 

Execute the following command before downloading:

MOVE /Y "{file:directory}\License.zip" "%TEMP%"
RMDIR /S /Q "{file:directory}"

Execute the following command after downloading:

MOVE /Y "%TEMP%\License.zip" "{file:directory}\"
Link to comment
Share on other sites

Hello iliaszou, it works fine for me. Do you have any blank lines in you command fields? And do not use copy/paste out of the forum for your commands and variables...

Oh and they removed the slim installer. You have to change your url variable to:

 

urls8urw.png

Link to comment
Share on other sites

Thanks necrox. I think it fixed. I have another question now. I want to creat a column near the version column the will say Downloaded Version. How can i do this? Now i have only a column version with {version} value.

 

Example: CCleaner Downloaded Version: 5.00 | Version: 5.01

Link to comment
Share on other sites

Nope slim installer is still available: http://www.piriform.com/ccleaner/download/slim/downloadfile

Just be aware that the slim installer is updated number of days after a new version of the normal installer is released (problably to get people to download the normal version if they cant wait).

Yes the slim version always they upload it after 2-3 days. Can someone help me with the columns as i said on the previous post? Thanks in advance and Merry Christmas!!! ;)

Link to comment
Share on other sites

Thanks for the hint, Tomorrow. I've never used the slim installer before. I prefer portable/standalone versions. :)

 

@iliaszou: You can try saving the last version into a txt file and read the last line (last version) and set it as a variable before writing the next version into it. There are a lot of batch and vbscript examples out there to read the last line of a text file. But I'll first of all have to familiarize myself with that. And I also have to find out if it is possible to create "external" variables (read a part of a txt file and use it as a (global) variable)...

Link to comment
Share on other sites

  • 3 weeks later...

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.