iliaszou Posted December 8, 2014 Report Share Posted December 8, 2014 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 More sharing options...
necrox Posted December 9, 2014 Report Share Posted December 9, 2014 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 More sharing options...
iliaszou Posted December 11, 2014 Author Report Share Posted December 11, 2014 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 More sharing options...
necrox Posted December 12, 2014 Report Share Posted December 12, 2014 If you want to keep the version within your folder name that's what I would use (hope it works): The app: 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: Contents from URL: http://www.piriform.com/ccleaner/download/ Use regular expression: (?<=versionHistory.*?v)[0-9.]{2,} The download: Textual content: https://www.piriform.com/ccleaner/download/slim/downloadfile The commands: 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 More sharing options...
iliaszou Posted December 16, 2014 Author Report Share Posted December 16, 2014 Thank you very much necrox!!! Link to comment Share on other sites More sharing options...
necrox Posted December 16, 2014 Report Share Posted December 16, 2014 You're welcome! Hope it works... Link to comment Share on other sites More sharing options...
iliaszou Posted December 17, 2014 Author Report Share Posted December 17, 2014 Today i went on my other computer and i try to do this thing with the commands. But The commands aren't working if i press the update on a app. But if i go to commands and run sepperatly they are working. Is there any way to fix it? Thanks Link to comment Share on other sites More sharing options...
necrox Posted December 21, 2014 Report Share Posted December 21, 2014 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: Link to comment Share on other sites More sharing options...
iliaszou Posted December 24, 2014 Author Report Share Posted December 24, 2014 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 More sharing options...
Tomorrow Posted December 24, 2014 Report Share Posted December 24, 2014 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). Link to comment Share on other sites More sharing options...
iliaszou Posted December 25, 2014 Author Report Share Posted December 25, 2014 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 More sharing options...
necrox Posted December 25, 2014 Report Share Posted December 25, 2014 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 More sharing options...
iliaszou Posted December 26, 2014 Author Report Share Posted December 26, 2014 Necrox could you send me your skype username or fb to talk? Thanks Link to comment Share on other sites More sharing options...
necrox Posted January 11, 2015 Report Share Posted January 11, 2015 Happy New Year! I don't have a FB or Skype account. How about your problem? Have you solved it? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now