-
July 31st, 2022, 01:12 PM
#1
move jpg files
Hi
Hope this is the correct place for this
I want to search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on anotherl hard drive
Thank you
-
August 1st, 2022, 12:20 PM
#2
-
August 1st, 2022, 01:04 PM
#3
Re: move jpg files
It is easy enough using Windows API functions like FindFirstFile/FindNextFile/FindClose/GetFileSize to enumerate the files and check their sizes, then MoveFile/CopyFile to move/copy the files.
Unfortunately I don't use VB6, so cannot help you more.
However, you could find the code examples for VBA.
Victor Nijegorodov
-
August 1st, 2022, 03:48 PM
#4
Re: move jpg files
 Originally Posted by VictorN
It is easy enough using Windows API functions like FindFirstFile/FindNextFile/FindClose/GetFileSize to enumerate the files and check their sizes, then MoveFile/CopyFile to move/copy the files.
Unfortunately I don't use VB6, so cannot help you more.
However, you could find the code examples for VBA.
Thank you for getting back to me
Sorry not got a glue to what you are talking about with them API functions
-
August 1st, 2022, 03:59 PM
#5
Re: move jpg files
Are going to implement this "search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on another hard drive" in VB6 or in VBA or in VB.Net?
Victor Nijegorodov
-
August 2nd, 2022, 03:01 AM
#6
Re: move jpg files
 Originally Posted by build
Hi
Hope this is the correct place for this
I want to search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on another hard drive
Thank you
How often do you need to do this?
-
August 2nd, 2022, 03:04 AM
#7
Re: move jpg files
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
August 2nd, 2022, 07:35 AM
#8
Re: move jpg files
 Originally Posted by Steve R Jones
How often do you need to do this?
Hi
I have 30 hard drives where I have loads of jpg files
So how many times will I need to run it is 30 plus
Can I ask why you ask that/
Kind Regards
-
August 2nd, 2022, 09:03 AM
#9
Re: move jpg files
 Originally Posted by VictorN
Are going to implement this "search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on another hard drive" in VB6 or in VBA or in VB.Net?
Anyone I'm not bothered which one
It will be on windows ten, so which is easy
-
August 2nd, 2022, 10:14 AM
#10
Re: move jpg files
Victor Nijegorodov
-
August 2nd, 2022, 12:07 PM
#11
Re: move jpg files
 Originally Posted by VictorN
Sorry I do not know any Coding at All so thank you for trying to help BUT i'm lost
-
August 2nd, 2022, 12:22 PM
#12
Re: move jpg files
 Originally Posted by build
Sorry I do not know any Coding at All so thank you for trying to help BUT i'm lost
If you "do not know any Coding at All" then why do you ask it in the Programming Forum? 
Please, note:
Forum: Visual Basic 6.0 Programming
Ask questions about VB 6.0 (or earlier versions) or help others by answering their question.
Victor Nijegorodov
-
August 2nd, 2022, 01:37 PM
#13
Re: move jpg files
 Originally Posted by VictorN
If you "do not know any Coding at All" then why do you ask it in the Programming Forum? 
Please, note:
Because I thought this was the place to get some idea how to do what I wanted and to be shown how to do it
WE have to LEARN som time
-
August 2nd, 2022, 01:45 PM
#14
Re: move jpg files
You asked it in a Programming Forum! it means you are going to answer about programming, not about the complete solution! Doesn't it?
Victor Nijegorodov
-
August 2nd, 2022, 02:37 PM
#15
Re: move jpg files
 Originally Posted by VictorN
You asked it in a Programming Forum! it means you are going to answer about programming, not about the complete solution! Doesn't it?
I presume that one has to ask a question to answer one
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|