Search found 159 matches

by RNIB
Tue Oct 24, 2017 2:20 pm
Forum: Technical / Scripting
Topic: Find All Files Above Certain Size
Replies: 8
Views: 5066

Re: Find All Files Above Certain Size

Okay now I don't know what is going on. Just tried adding subfolders into C:\temp and it wouldn't find any files in any subfolders but now it won't find any files in C:\temp when a moment ago it was :?: :?: :?: Same files, nothing moved, nothing changed in the script. It worked once and now not at a...
by RNIB
Tue Oct 24, 2017 1:49 pm
Forum: Technical / Scripting
Topic: Find All Files Above Certain Size
Replies: 8
Views: 5066

Re: Find All Files Above Certain Size

I think I've found the problem but I don't know why it's a problem. If I put my large files in C:\temp the script works. For some reason it doesn't like the folder structure we are using which is in this format: L:\CLIENT NAME BACK CATALOGUE\name\number - Title of production This it usually is inclu...
by RNIB
Tue Oct 24, 2017 12:57 pm
Forum: Technical / Scripting
Topic: Find All Files Above Certain Size
Replies: 8
Views: 5066

Re: Find All Files Above Certain Size

I'm running Windows 7 64bit. If I type forfiles into a command prompt I get list of things starting with ".gtk-bookmarks" and ending with "XMLjobtickets" I've found now where it's creating the .txt file but the file itself is empty which would explain why the message box is blank. I've run this on s...
by RNIB
Tue Oct 24, 2017 10:08 am
Forum: Technical / Scripting
Topic: Find All Files Above Certain Size
Replies: 8
Views: 5066

Re: Find All Files Above Certain Size

Cheers JRL, sorry for the long delay in replying. I wasn't ignoring you, just been off work for a few days. I don't seem to be able to get this to work. I've deliberately put files in a folder that are over size and when I run the script I just get an empty message box come up. At the risk of soundi...
by RNIB
Thu Oct 19, 2017 1:20 pm
Forum: Technical / Scripting
Topic: Find All Files Above Certain Size
Replies: 8
Views: 5066

Find All Files Above Certain Size

I'm trying to write a script that ideally would find all MP3 files in a folder that had a running time of longer than 78 Minutes but because I can't find an easy way of finding the running time I'm resorting to a slightly less accurate method of using file size. This is what I have at the moment (ba...
by RNIB
Tue Sep 19, 2017 3:54 pm
Forum: Beginners
Topic: Get combined size of all files in folder?
Replies: 1
Views: 2627

Get combined size of all files in folder?

I would like to add a final function to my macro. This macro joins together several WAV files into one new file. What I would like to do is to get the file size of the newly created file (1 wav file) and compare it against the combined file size of all the WAV files that were joined together. All of...
by RNIB
Tue Sep 19, 2017 1:02 pm
Forum: Technical / Scripting
Topic: Increment Variable Name based on loop
Replies: 4
Views: 3430

Re: Increment Variable Name based on loop

Aha! Yep that fixed it.

Cheers Marcus, much appreciated.
by RNIB
Tue Sep 19, 2017 12:03 pm
Forum: Technical / Scripting
Topic: Read File Names In Window, compare and delete
Replies: 4
Views: 2944

Re: Read File Names In Window, compare and delete

Ahh yes <Sound of penny dropping> :wink:

That makes sense and a much more elegant way of doing it compared to the convoluted code I was trying to write.

Cheers Marcus.
by RNIB
Tue Sep 19, 2017 12:01 pm
Forum: Technical / Scripting
Topic: Increment Variable Name based on loop
Replies: 4
Views: 3430

Re: Increment Variable Name based on loop

:oops: :oops: Ahh, yes, oops. In my defense I copied and pasted into a temporary script to hack it around and added the messagemodal command at the last minute. However in my original script the variables are between %%. I've tried adding them in the test script as well but it still doesn't work in ...
by RNIB
Tue Sep 19, 2017 10:43 am
Forum: Technical / Scripting
Topic: Increment Variable Name based on loop
Replies: 4
Views: 3430

Increment Variable Name based on loop

I'm trying to copy the names of files and store them as variables for later comparison. I had intended to do this using a loop command but the variables aren't being captured in that if I messagemodal them, I just get the name of variable and not what should be in the variable. This is a heavily edi...
by RNIB
Tue Sep 19, 2017 9:14 am
Forum: Technical / Scripting
Topic: Read File Names In Window, compare and delete
Replies: 4
Views: 2944

Re: Read File Names In Window, compare and delete

Cheers Marcus, but that's the problem. Lets say I have 9 files in my folder but for some reason when I open them up, this program lists 15 files as being open. If I set the loop to equal the file count (9) it won't check 6 of the files listed in this program. I will have no way of knowing what files...
by RNIB
Mon Sep 18, 2017 5:28 pm
Forum: Technical / Scripting
Topic: Read File Names In Window, compare and delete
Replies: 4
Views: 2944

Read File Names In Window, compare and delete

Okay a bit of a hard one to explain but there is a bug in a program we use that can't be fixed for reasons that are too long and boring to go into so I'm trying to come up with a workaround. The problem is that if you previously joined files together in a particular program, very occasionally when y...
by RNIB
Tue Sep 12, 2017 3:54 pm
Forum: Beginners
Topic: Looping Problem
Replies: 2
Views: 3489

Looping Problem

I've never been great on looping and in this particular macro has loads depending on what happens elsewhere in the script but several of them all reference a predefined value that determines how many times all the various loops should run. This part of my script is navigating a file list within a pr...
by RNIB
Tue Sep 12, 2017 1:39 pm
Forum: Technical / Scripting
Topic: Compare Looping Variables?
Replies: 0
Views: 5448

Compare Looping Variables?

Not too sure on the best way to describe this but... I have a window that shows a list of files used in a particular program. This list is in columns a bit like those in Windows Explorer which show file properties etc. One of these columns is called Description and will be either empty or contain th...
by RNIB
Fri Sep 08, 2017 3:42 pm
Forum: Technical / Scripting
Topic: Separate copied text
Replies: 13
Views: 7040

Re: Separate copied text

Ahh! I take it back. Just realised why it wasn't working. I'd left a WaitKeyDown>c in that subroutine whilst I was testing something else out (I was manually adding a space before the commas to see if that would make separate work before pressing c to continue the script- it didn't) Now, with your L...
cron
Sign up to our newsletter for free automation tips, tricks & discounts