Jump to content
TheSaint

TeraCopy Timer

Recommended Posts

TheSaint

TeraCopy Timer - A program of mine, front end really, that I have been working on (on & off) for some time, but not shared here before, that I recall. Third party program TeraCopy is required.

Many of you will be familiar with TeraCopy, and it has been discussed here at AF on several occasions, in various sub forums, including Chat.

BE ADVISED - I still use an older version of TeraCopy (v2.27), a goody but an oldy, so have only tested my program with that. It may work with the newer v3.xx, or may be easily adjusted to do so, but I have not yet gone that route. Likewise, I only use it with Win 7 and Win XP, but I don't imagine there should be any issues with newer Windows. Add to that, my program being devised and created in AutoIt v3.3.0.0.

So what is TeraCopy Timer and why might you need it?

Spoiler

I devised my program for two main reasons really, based on giving me greater control, using the Free version of TeraCopy, which has some limitations (perhaps even with the paid full version). My program utilizes the features of the TeraCopy command-line.

1. I was fed up with Thumbs.db files regularly halting the process in Win XP or preventing a folder being deleted after a move. Only happens with Win XP.

2. I wanted to automate delays between jobs, allowing all HDD's to rest periodically when doing large and lengthy jobs. Letting HDD's heat up too much, can have tragic results or considerably shorten their lifespan. Prevention is better than cure or just relying on monitoring software etc.

--------------------------------------------------------------------------------------

Those familiar with TeraCopy use, know you can run multiple copy or move jobs either simultaneously or concurrently (one immediately after another has finished). With the free version at least, you have no control over precise order or timing, and no way to deal (without manual interaction) with the pesky Thumbs.db files in Win XP. TeraCopy Timer allows you to do all those things, and in a batch fashion.

--------------------------------------------------------------------------------------

Some screenshots and brief explanation

Main Window

Spoiler

TC_main_2-0.png

You can browse to set the Source and Destination paths, or like me, just use Drag & Drop to those inputs.
Once the Destination path has been set, the MIN (minimalist GUI) button becomes available. In Minimal mode, you get a further level of automation, once initial options are set, and thus less prompts ... none in fact, as jobs are created automatically based on either COPY or MOVE.

Minimalist Window

Spoiler

TC_min_2-0.png

In the Minimalist mode, you can only use Drag & Drop to add a source file or folder, and COPY or MOVE is permanently set when the window first opens, via a choice prompt.

Assigning a WAIT is simple and easy, and is the latest feature added to the program ... I used a much more complex variant before that (see Advanced Delay).

TC_min_2-0 with Wait.png

The program now displays three file size reports.
Individual Size of the current (last added) job (Blue label).
Total Size of all jobs combined (Black label).
Subtotal Size for each grouping of jobs, defined by a WAIT selection (Red label).
You toggle between Black and Red, by just clicking that label. If no WAIT has been set, then the values will be the same.
The wait of 5 minutes in the screenshot above is set for the source shown. It means wait 5 minutes before copying (or moving) that source.
More sources added from that point, add to a new subtotal. To see the previous subtotal, you need to be at the main (MAX) window, and select the prior job.
So every time a WAIT is clicked for a source a new subtotal count is started.

TC_main_2-0 with Wait.png

In the screenshot above, you can see the Job name, and that it is Job number 5 order wise. MOVE has been set for that job.
Selecting Job 4, you will see the previous (complete) Subtotal. Selecting job 3 (in this instance), you would see the subtotal up to that job.
Click the red Total label and it will change to Black, and show you the total size over all, as shown in the second screenshot above.

This new WAIT feature is the simplest and best way to use the program generally (in my view) ... but check out the following, as it is not always the case.

Advanced Delay Window

Spoiler

TC_delay_2-0.png

The Advanced Delay Options, are a further level of automation, added during the early stages of development, before I thought to create the Minimalist window and show Sizes. It was before I decided to put a lot more effort into the program. As with all my programs though, it is continual use that eventually dictates what I ultimately want to happen, to make my life easier ... simpler, better, smarter, quicker.

The main difference between this older method, and the new WAIT one, where you specify delays precisely, is that the program attempts to determine the best moments to pause, based on various factors, which you setup and can vary between different types of Job sessions.

The chief purpose for all the advanced options, is an attempt to cater for the difference between moving a small number of big files and a lot of small files. Moving or Copying lots of small files (hundreds or thousands), as many would know, can heat up a HDD far quicker and to a much higher temperature than a small number of (even very) large files. I guess that is primarily due to the sheer number of indexes that need to be created, and with small files are done at a staggering rate.

Which method you use, is up to you, and should be governed by the type of job. Both methods can be used together, but not advised if you don't want the possibility of unnecessary extra long delays. EDIT - That said, you could use the WAIT option just for a delayed start of the first job ... perhaps your PC is busy doing something else until then, but you want to go and do something else for a bit, and have it all done by the time you return (i.e. watch a movie).

WARNING - It should go without saying, that you take all the usual precautions. For instance, don't use move with the only copy you have of precious files. BACKUP BACKUP BACKUP! Don't hold me liable for anything, except for being a nice guy who likes to share. :)

TeraCopy Timer v2.8.zip  (see detail at Post #34)

TeraCopy Timer v2.9.zip  (see detail at Post #35)

Enjoy!

OLDER DOWNLOADS

Spoiler

TeraCopy Timer v2.0.zip  (51 downloads)

TeraCopy Timer v2.2.zip  (see detail at Post #8(22 downloads)

TeraCopy Timer v2.3.zip  (see detail at Post #10(13 downloads)    Sources.zip  (22 downloads)

TeraCopy Timer v2.4.zip  (see detail at Post #23) Source now included.  (30 downloads)

TeraCopy Timer v2.5.zip  (see detail at Post #27 including latest screenshots).  (22 downloads)

TeraCopy Timer v2.6.zip  (see detail at Post #29 including latest screenshot).  (6 downloads)

TeraCopy Timer v2.7.zip  (see detail at Post #30)

P.S. I am not affiliated in any way with those who created and provide the excellent third party program - TeraCopy.

Edited by TheSaint
Update
  • Like 3

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
Xandy

As you know, my harddrive recently failed and there was a large file transfer to it just before the drive died.  I'll be using this program when I get a new hard drive and transfer heaps of data to it.

Being able to schedule pauses during writes will hopefully prevent me from overheating another drive.  (If that is what caused the fail) 

Thank you for providing this.

Edited by Xandy
char 12 is now a comma
  • Like 1

Share this post


Link to post
Share on other sites
TheSaint

My pleasure Xandy, hope it helps. :)

P.S. If you ever find that link to that Business which uses hundreds of drives from a variety of manufacturers, and who did a study on longevity and type of use etc, and provide it here, that would be great. I should check my many bookmarks, as I possibly saved a copy of the link from our HexChat chat on Freenode a month or two back. :idea:

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
Xandy
10 minutes ago, TheSaint said:

If you ever find that link to that Business which uses hundreds of drives from a wide variety of manufacturers

It was this site: https://www.backblaze.com/blog/what-hard-drive-should-i-buy/

My dead drive is a Seagate Barracuda.  Validating the data at BackBlaze to me at least xD.

Edited by Xandy
Added site label to clarify it was the site with 'data' requested
  • Like 1

Share this post


Link to post
Share on other sites
TheSaint

Ha ha, excellent, thanks for that .... I notice my blue star for Bookmarks lit up when I followed the link, so I did bookmark it. :lol:

Thanks for saving me having to search. ;)

  • Like 1

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
argumentum

https://www.computerhope.com/issues/ch001061.htm 
Disable Windows thumbs.db files from being created: Windows XP
Open My Computer.
Click Tools and then Folder Options.
Within the Folder Options window click the View tab.
In the View tab, under Advanced Settings, check the box Do not cache thumbnails.
Click OK.

By the way: Thanks for sharing your code :) 

Share this post


Link to post
Share on other sites
TheSaint

True, but I like to see certain media folders (Games, Movies, Music, Photos, etc) display an image, based on Folder.jpg, and if my memory serves me right, if I disable Thumbs.db, then I don't get that.

Even if I am wrong about that last, does disabling it remove all existing Thumbs.db files, or just stop new ones being created?

Thumbs.db files with Win 7 don't cause an issue with TeraCopy, whereas they do with Win XP, so to my mind it is a bug they never bothered to fix. Quite a while back, I did try to reason with one of their developers, but either he didn't want to know (they were developing v3 at the time) or he just didn't understand (somehow), so I gave up and created my own solution. And I am guessing, that terminated support for Win XP, was also a factor, which shouldn't be in a case like this type of program ... old PCs don't stop being relevant or usable, just because a new version of Windows comes along, they are still very handy for all sorts of things, not least of which is storage or games and other media, and that often involves moving large amounts of files around. Narrow thinking in that regard always pisses me off. Something like Thumbs.db files (very common) halting proceedings etc, is a pretty major bug to my mind, that should have been fixed, especially in the case of Win XP, which is arguably Microsoft's most popular OS ever, and still used by many all over the world, even if just in a secondary or third PC capacity.

My pleasure. :)

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
TheSaint

TeraCopy Timer updated to v2.2. See first post above.

(v2.2) Added a Splash while source is being calculated, to show something is happening when it is taking a while, due to Windows processing lots of directory content. Added missing copyright information. Process Advice when using the MIN button is now only shown once while program is running, but can now also be found on an extra Program Information window. The floating STOP button now displays a trailing word 'now', when not a 'Wait'.

(v2.1) Added a right-click context menu entry to the START button, for just removing (deleting) ALL the Thumbs.db files from the selected source and its sub-folders.

TOP

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
Bilgus

Seems to me that you have most of a decent front end for an xcopy implementation rather than using teracopy or is there something special I'm missing about it?

Share this post


Link to post
Share on other sites
TheSaint

TeraCopy Timer updated to v2.3. See first post above.

(v2.3) Bugfix for '0 Mb's' being reported in Log file. Window position is now saved when program is closed. Added two options (buttons) to change either the Destination folder or Copy/Move process for all jobs. A dropbox is used to change the Destination folder. A smarter job naming method has been implemented.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
TheSaint
On 23/02/2018 at 4:59 AM, Bilgus said:

Seems to me that you have most of a decent front end for an xcopy implementation rather than using teracopy or is there something special I'm missing about it?

Gawd, I have not used xcopy in many years.

Perhaps you are not aware of the many benefits of TeraCopy. I don't have it enabled as a full replacement for Windows copy and move, but I do have it enabled for right-click dragging, so I use it most of the time ... quickly and simply, with no fuss or mucking around ... and that's just the free version.

I created my program here, because I wanted a bit more control ... especially when moving lots of content and many gigabytes ... my concern being over HDDs heating up too much (which they often do), and having less memory usage (no multiple TeraCopy windows open), etc.

So the best way to describe my program perhaps, is a batch method with user determined pauses and CRC checking ... no holdups and precise reporting and easy options to deal with issues.

So in short, xcopy is not up to that type of job ... not without a lot more mucking around ... and maybe not even then.

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
iamtheky
34 minutes ago, TheSaint said:

So in short, xcopy is not up to that type of job

What you describe is exactly what I did moving WIMs in a batch  'capture-alter-deploy' fashion with Imagex, DISM, and xcopy. I'd like to see the batch job that might be tedious with xcopy and/or how the teracopy batch is less so for my edification.

Also, with xcopy being baked into the OS now it's hard not to crutch on it, convincing displays would be useful for the future inquirers.

(also, hes not wrong that it would be a badass UI for xcopy, but again im not sure i fully understand the limitations)

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
TheSaint
On 24/02/2018 at 0:31 PM, iamtheky said:

(also, hes not wrong that it would be a badass UI for xcopy, but again im not sure i fully understand the limitations)

I have no idea if xcopy has any limitations. What I said was based purely on the trouble I would need to go to, to equal what TeraCopy does easily.

It is probably a case of try-and-see to really appreciate the full benefit of TeraCopy. When I first started using it a few years ago, it blew me away, and is hands down one of the better programs to see light of day in the last decade, in the improvements it gives to users, especially over regular Windows copy and move.

A short and nowhere near total list of benefits (available in free version).

Pause & Resume.

Skips problem files, but gives you a report that explains why and allows you to try again.

CRC testing. Which also allows you to skip identical files and reporting which ones they were, etc.

You can keep on adding files for the same destination, while the process is under way.

You can start a job and then queue up others, if alternate destinations ... or run all simultaneously.

Shutdown PC when finished.

etc etc

P.S. In short I see no need to re-invent the wheel, especially when that would take considerable effort and some likely obstacles to overcome.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
Earthshine

ROBOCOPY is where anything copy is at


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
TheSaint
17 hours ago, Earthshine said:

ROBOCOPY is where anything copy is at

Another program I tried years back.

Have you actually tried TeraCopy?
If not and you are going to, then my advice is to not fully implement it. Just enable it for your right-click menu ... and then use right-click drag from source to destination (that gives you a menu, where you can select to use Windows or TeraCopy copy/move options). I've not used any 3.xx version yet, but supposedly it now uses regular WIndows copy & move for small single file copies.

My view is simplicity is best, and TeraCopy qualifies in spades. It integrates itself so well with Windows, that you are barely aware you are using a 3rd party program.

Anyway, enough promotion for TeraCopy. As much as I like them, some little things like 'Thumbs.db' files halting things in WIN XP (but not WIN 7 or above) irked me enough to find a replacement. There is even a discussion somewhere here (in Chat I think), about my failed search. And yes I looked at Robocopy, FastCopy and many others. TeraCopy despite its minor failings, is still better.

.... and before anyone chastises me for still using WIN XP. Yes, I still use it, but I also use WIN 7, WIN 8, LINUX,  etc. WIN XP is still a great OS, when you use it offline as I do for Games, Programming, Video Conversion, etc, etc.

WIN XP is still better for the older hardware it was designed for, and costs nothing to retain.

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
Bilgus

I'd chastise you for still using Windows before I did it for XP even if you are online with it as long as you aren't doing sensitive work on it WGAFF?? Oops now you need to reformat and a prince from Nigeria knows your favorite TV Shows!

Something cool though Is using those Windows XP installs as virtual machines Using Grub on win XP, vista, 7 and (natively on W8)

I liked it so much back with XP its the only way I'll use Windows..

basically you set up an image with all your programs and put the user folders on a different drive or on the actual drive the image runs from you only back up those user folders something happens you delete the image copy your fresh one in from compressed backup and you just reinstalled add your new stuff and resave the image bobs your uncle and red greens your idol

oh did I mention you boot the VHDs and or can use a program such as Virtual box to run them

W8 is really where its at though since its native and you can run the VHDX images without having to use GRUB

Edited by Bilgus

Share this post


Link to post
Share on other sites
TheSaint

While I know full well I could use virtual machine images and no doubt will at some point, my old offline laptop with WIN XP works just fine as it is, and so I see no reason to go to any VM trouble. I also prefer to not do everything on the one PC, but dedicate each PC to do different tasks, that can be executed simultaneously without any overheads. So while one PC is busy moving files around using TeraCopy Timer (plus external HDDs), and having little rests between some jobs, I can be busy playing a game on another PC, and maybe even burning, ripping or converting something on a third PC ... perhaps even browsing the web on a 4th. Maximum flexibility is the name of the game for me, and smart time usage.

For some reason, many seem to think once a new Windows OS comes out, you throw away a perfectly good setup, and then because you need to, install emulation software.

For me, it is all about the right tool for the right job, and making do in a sensible fashion .... not a fan of the throwaway society mentality ... our rubbish tips etc are full enough as it is. Using older devices, also helps you appreciate the new ones more ... and sometimes the older ones too.

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
Earthshine

So you like to use tons of power running ancient Chinese Secret PCs? One modern box could host several PCs 

i prefer robocopy because it’s built in and because nothing beats its tenacity at making verifiable copies. It’s not called ROBUST COPY for nothing

At work we typically build a box and use it for about 10 years before it’s rebuilt. And each machine can run several VM’s at once. I don’t believe and throw away either

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
TheSaint

I guess that means you haven't tried TeraCopy then, which is just as built in (perhaps more so) and is as robust and tenacious as it needs to be (maybe more) in my experience .... the Thumbs.db issue with an old OS aside.

Well, even if I spent megabucks on one machine, to do as you say, dedicated machines still do a better job, and they especially make it easier to troubleshoot etc. And I have never liked placing all my eggs in one basket ... Mr. Murphy has shown me the foolishness of that.

It's only electricity, and I would like to see a comparison of power usage, as power usage of such a beast as you suggest, would be very high indeed, especially running all I would be. Not to mention other issues such as cooling considerations and perhaps noise. A work environment is a very different one to the home one I am in ... mostly using portables (Netbook and Laptops).

P.S. And last time I tried RoboCopy, it was a complex beast. TeraCopy for normal usage (at least the free version installed as I have it), is very much less so.

P.S.S. I have no intention to continue arguing about the merits of each. RoboCopy makes you happy, so each to their own. In my instance at least, it is not the right tool for the right job ... and I have been around the block, just a few times now, so I ain't no babe in the woods. ;)

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites
TheSaint

By the way, if anyone would prefer to have a RoboCopy Timer or Xcopy Timer (etc) version of my program, then the source is provided in the zip, and it is only a small portion of code (and some names) that would need changing ... you could even make it optional very easily.

You could even upload your adaption in a post here, and I would create a link to it in the first post, and amend the topic title appropriately.

Just add your name in the Program Information dialog.

© April 2014 by TheSaint  (latest update in February 2018).
(adapted for RoboCopy by Earthshine in March 2018)
(adapted for xcopy by Bilgus in March 2018)

Easy peasy.

Or give me the command-line requirements for RoboCopy etc and I may get around to it myself ... eventually ... though aside from xcopy, I won't test them myself.

Edited by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
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

  • Similar Content

    • Earthshine
      By Earthshine
      This is pretty useful to me at least, I hope to others. Whenever you need to poke a button or such on a GUI, you can just make calls to this UDF and instruct it how long to wait, 0 is forever, anyway, let the code to the explaining. Feel free to help expand this UDF. I plan to create new ones as I go along that support all the Win32 and .NET Controls. Ultimately, I would like to be able to fully control any type of control, this works well with most. Just an example of what you can do.
       
      The test installs and can uninstall 7-Zip 15.14 (x64) Setup.exe
      NOTE: Logger Author(s) .....: Michael Mims (zorphnog)
      ;                    the logging script can be obtained here
      ;                   https://www.autoitscript.com/forum/topic/156196-log4a-a-logging-udf/
       
       
       
       
      WaitForControls.au3
      install_7zip_test.au3
    • rcmaehl
      By rcmaehl
      A UDF to connect and control Cisco Finesse on the Local Network via it's provided HTTP API
       
      Current Features:
      Heavyweight
      * Large feature set, containing most Finesse Desktop API functions  
      PLANNED Features:
      Heavyweight
      * Control over own Status as well as Supervisor functionality
        Helpful Premade Examples Files
      * Examples for almost every function
      * Premade CUI and GUI clients showing 
        Ready for all users, beginner and up
      * Detailed Error Reporting to help pin-point problems
      * Thorough parameter checking to prevent accidental script crashes
    • VollachR
      By VollachR
      I'm quite new to AutoIT and I have a very big batch file that I'm trying to completely re-write in Autoit, so far it's been going well but I got stuck with a certain part, hope someone can help.
      Here's the part of the batch script I'm currently stuck re-creating in AutoIT:
          :BeginLangMenu     if "%OptNum%" gtr "0" goto ShowLangMenu          ::Next Section code based on code supplied by Aacini from stackoverflow.com     :DefineLangMenu     for /L %%D in (1,1,99) do (        if exist Common\Settings\Data%%D.ini for /F "eol=# tokens=1,2 delims==" %%a in (Common\Settings\Data%%D.ini) do (                set line=%%a           if "!line:~2,5!" neq "clude" (              REM Define "normal" variables, i.e. Compressor, Method, etc.              set %%a=           ) else if "!line:~7!" neq "" (                   REM Define the base array elements, i.e. D1IncludeAR=%%b, D1ExcludeAR=%%b, ...              set D%%D%%a=%%b                   REM Set Show?? array elements with value equal 1, i.e. ShowAR=1, ...              REM when anyone of DiInclude?? or DiExclude?? corresponding elements was given              if defined D%%D%%a set Show!line:~7!=1                )        )     )          REM Define a list of language abbreviations, i.e. "langs=AR CZ DE ..."     REM and the corresponding language names array, i.e. lang[AR]=Arabic, ...     REM At same time, calculate original OptNum          for %%a in ("AR=Arabic" "CZ=Czech" "DE=German" "EN=English" "ES=Spanish" "ESMX=Spanish(Mexico)"                 "FR=French" "HU=Hungarian" "IT=Italian" "JP=Japanese" "KR=Korean" "PL=Polish"                 "PR=Portuguese" "PRBR=Portuguese(Brazil)" "RU=Russian" "ZH=Chinese") do (        for /F "tokens=1,2 delims==" %%b in (%%a) do (           set "langs=!langs! %%b"           set "lang[%%b]=%%c"           set /A "OptNum+=Show%%b"             )     )          ::NEXT 2 SECTIONS DISPLAYS THE LANGUAGE SELECTION MENU IF APPLICABLE     :ShowLangMenu     set /a step=%step%+1     :LangMenu     if "%OptNum%"=="0" Goto checksplit     echo %TIME:~0,2%:%TIME:~3,2%:%TIME:~6,2% - Showing Language Selection Menu >> "%workdir%Conversion.log"     REM Show the language menu     set #=0     for %%a in (%langs%) do (        if defined Show%%a (           set /A #+=1     rem       echo [!#!] !lang[%%a]!           echo !lang[%%a]! >> %b2eincfilepath%\Lang.txt           set "option[!#!]=%%a"         )     )               %MYFILES1%\DROPDOWNBOX.exe /F:"%b2eincfilepath%\Lang.txt" "Choose Which Language to Compress" "STEP %step%: Language Selection"  /W:280 /RI /C:13 >nul > %b2eincfilepath%\LangAnswer.txt     if %ERRORLEVEL% EQU 0 del %b2eincfilepath%\LangAnswer.txt     if exist %b2eincfilepath%\LangAnswer.txt set /p "SelectLang="<%b2eincfilepath%\LangAnswer.txt     if not defined SelectLang goto LangError     if %SelectLang%==Arabic Set LangOpt=AR     if %SelectLang%==Czech set LangOpt=CZ     if %SelectLang%==German set LangOpt=DE     if %SelectLang%==English set LangOpt=EN     if %SelectLang%==Spanish set LangOpt=ES     if %SelectLang%==Spanish(Mexico) set LangOpt=ESMX     if %SelectLang%==French set LangOpt=FR     if %SelectLang%==Hungarian set LangOpt=HU     if %SelectLang%==Italian set LangOpt=IT     if %SelectLang%==Japanese set LangOpt=JP     if %SelectLang%==Korean set LangOpt=KR     if %SelectLang%==Polish set LangOpt=PL     if %SelectLang%==Portuguese set LangOpt=PR     if %SelectLang%==Portuguese(Brazil) set LangOpt=PRBR     if %SelectLang%==Russian set LangOpt=RU     if %SelectLang%==Chinese set LangOpt=ZH     if defined SelectLang Goto LangSet          ::SETS THE LANGUAGE SELECTION ACCORDING TO USER INPUT IN LANGUAGE MENU     :LangSet     set "LangIs=%LangOpt%"  
      Basically, here's what I need to do:
       Read from specific section of INI file but ONLY the Keys that have a Value. OR: A way to remove the keys without the values from the Array created by IniReadSection. A way to then take these stored values, and create a list of Languages based last 2-4 characters of the Key names. At this point, that said list is shown to user in DropDown box, after user make selection I need a way to move the Value of the Key related to the selected Language to a Variable, and ONLY the value for that specific Language. That's it basically, the rest is more or less Variable manipulation which isn't a problem.
      A little Example:
      My INI file have a Section like this:
      [LangInclude] IncludeAR=a IncludeCZ= IncludeDE=b IncludeEN= IncludeES=c IncludeESMX= IncludeFR= IncludeHU=d IncludeIT= IncludeJP= IncludeKR=e IncludePL= IncludePR= IncludePRBR= IncludeRU= IncludeZH= I need to get Only the keys that are set, in this case: IncludeAR, IncludeDE, IncludeES, IncludeHU & IncludeKR.
      I then need to convert these to a list of languages, in this example it will be (Arabic, German, Spanish, Hungarian, Korean).
      That list will be turned to DropDown selection, that I can do easily once I get the list correctly.
      After the user Selected, let us say for the example purpose Spanish, I need the Value of IncludeES to be moved into a Variable, like this: $Var=c
      I hope somebody can help me because I'm stuck after Importing the INI section with IniReadSection, everything I tried so far failed, the best I managed to do is Sort the array to have all the keys with values either at the first rows or last rows.
      I need some ideas.
      Help appreciated.
      Thanks
       
    • boomingranny
      By boomingranny
      ;****************************************************************** ;Spotify Automation: Start spotify and play a playlist ;v1.01 27/04/2018 ;------------------------------------------------------------------ ;by Daniel Barnes ;------------------------------------------------------------------ ;v1.01 27/04/2018 ;restarts spotify if it fails the first time ;works on computers that minimize Spotify to tray ;instead of closing it, and have a different ui element selected ;such as the Devices available option when spotify is started ;------------------------------------------------------------------ ;v1.00 25/04/2018 ;initial version ;------------------------------------------------------------------ ;Replace the below with the Spotify URI ;If you right click the playlist> share> copy spotify uri ;you can find the uri $spotifyURI = "spotify:user:12177300374:playlist:0iaTAvHRSaIkD23ofl2tck" ;****************************************************************** ;if this script breaks in the future, figure this out using the AutoIt Window Info Tool Const $SpotifyWindowIdentifier = "[Title:Spotify;Class:Chrome_WidgetWin_0]" ;NOTE ABOUT SHUFFLE: ;I couldn't automate turning shuffling on or off ;I can toggle it, but I cannot figure out the current state ;If you want to shuffle, turn on shuffle in Spotify prior ;to running this script PlaySpotifyPlaylist($spotifyURI) Func PlaySpotifyPlaylist($spotifyURI,$retry = 0) ;terminate spotify process on subsequent attempts If $retry Then echo ("Closing existing Spotify process") ProcessClose("Spotify.exe") endif echo ("Launching Spotify URI") ShellExecute($spotifyURI) ;Pause any existing song playing (if there is any) ;this is because Spotify's window title is only 'Spotify' when it is not playing any songs If Not WinExists($SpotifyWindowIdentifier) Then echo ("Pausing existing song (To find spotify window)") $timer = TimerInit() While Not WinExists($SpotifyWindowIdentifier) Send("{MEDIA_PLAY_PAUSE}") Sleep(500) If TimerDiff($timer) > 5 * 1000 Then ErrorMsg ("Timed out trying pause existing song") WEnd endif ;Get Spotify Window Handle $hwndSpotify = WinGetHandle($SpotifyWindowIdentifier) echo ("Attempting to play playlist") $timer = TimerInit() While WinGetTitle($hwndSpotify) = "Spotify" ;once it is playing the song, the title changes to the name of the song WinActivate($hwndSpotify) ControlSend($hwndSpotify,"","","{ENTER}") ;space will play what was previously playing (even another playlist or song), enter will play the playlist ;) Sleep(1000) If TimerDiff($timer) > 5 * 1000 Then If $retry Then ErrorMsg ("Timed out trying to play playlist") else Return PlaySpotifyPlaylist($spotifyURI,$retry+1) endif endif WEnd EndFunc Func echo($text) ConsoleWrite ($text&@CRLF) EndFunc Func ErrorMsg($text) MsgBox(16,StringTrimRight(@ScriptName,4),$text) Exit EndFunc  
    • rootx
      By rootx
      Hi, I need to convert this batch, I follow microsoft specs here https://technet.microsoft.com/en-us/library/bb491005.aspx
      Ex:
      start /b 1.exe "path\2.exe"
      start /b mypgrcommand
      start /b /wait 3.exe "path\4_.exe"
      taskkill /F /IM 5.exe
      Somethings like this...
      RunWait( @COMSPEC & " /c start /b 1.exe 'path\2.exe' start /b mypgrcommand start /b /wait 3.exe 'path\4_.exe' taskkill /F /IM 5.exe", "", @SW_SHOW ) Thx
×