Link to home
Start Free TrialLog in
Avatar of sear
sear

asked on

Coping Mulitiple files

How can I copy all the files in a directory to disk a in vb
example:
copy (mydir\*.* a:\
thank you
ASKER CERTIFIED SOLUTION
Avatar of mark2150
mark2150

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
mark2150 wrote:
>SHELL( "COPY MYDIR\*.* A:\"), 1
try again
Avatar of mark2150
mark2150

Umm, COPY is internal command. Use XCOPY as external and/or

SHELL("C:\COMMAND.COM /C COPY MYDIR\*.* A:\"), 1

Good answer. Or
SHELL(Environ("COMSPEC") & " /C COPY MYDIR\*.* A:\"), 1
(BTW, I didn't see anybody using other then C:\COMMAND.COM)
Yeah, I know about ENVIRON, but I didn't want to confuse the issue with another command.

ExecCmd is preferred anyway as it will *wait* for child to finish.

Have code if you need it.
It would be nice to have "animation" like in explorer or when emptying recycle bin. But this is another question (hard?)
Not really. Use a picture clip to hold the animation frames and twirl the images while you're waiting for ExecCmd to return instead of spending time in spin loop.
Sounds easy. But creating animation frames is not trivial.
Unless you have a designer in your company.
I thought OS animations, like SHFileOperation in Win95.
Depends on how complex an animation you want. Was able to do a "spinning" moon based on a 32x32 icon file in just a few minutes. Generated 8 different images with moon running to full-new-full. Looks neat. Kind of a complement to the Netscape spinning earth.

Take the trash animation, add flames, twiddle the flames a couple of times. Wind up with empty bin. Should give you a good six or eight frame sequence without getting too fancy.

M



Nice job, mark2150. If I knew this, I would consider switching to designers job. Do you know what is the price for a little logo? Here, designers (Corel, Photoshop...) are better paid then academic painters.
Logo is corporate entity and needs a lot of thought/skill to create. SIlly little button animations are not hard to create esp if they're all related. Ever draw little stick figures in the margins of a book to make simple animation? Same technique only done electronically.

M

OK. Don't take my words too serious. Recently I needed a logo for my small, 1-man company. It would be nice also to have a nice logo for each software product. For now, all I can do is create nice 32*32 icon.
Now, I will go to your web page. I am curious if I will see icon for your software in Florida. It must be something like:
###
###

:)
I whip up icons for the code, for my page you'll find my signature and my "grinnin' ape" picture - actually I embed them in my projects. Usually if you double click on the main form off of any controls the "hidden" copyright will appear.

M

Nice job. Also nice web pages and family. Dennis is also OK!
See you on other questions.