473,566 Members | 2,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying Contents of Drive to Folder

How do I copy all the contents of a cd drive (All files and subfolders) to a
folder? If possible, I'd like to implement a progress bar control to tell
users how much the app has copied.
Nov 20 '05 #1
3 1027
* "Jason Moss" <pc******@sbcgl obal.net> scripsit:
How do I copy all the contents of a cd drive (All files and subfolders) to a
folder? If possible, I'd like to implement a progress bar control to tell
users how much the app has copied.


You can use p/invoke on 'SHFileOperatio n'. A C# sample can be found
here:

<URL:http://www.palmbytes.d e/content/dotnet/dl/shellfileoperat ion.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Is it possible if someone can provide this info in steps? I don't use C#,
so how would the above link apply to VB.NET?

-Jason
Nov 20 '05 #3
Jason did the email help ?
"Jason Moss" <pc******@sbcgl obal.net> wrote in message
news:Oh******** ******@TK2MSFTN GP10.phx.gbl...
How do I copy all the contents of a cd drive (All files and subfolders) to a folder? If possible, I'd like to implement a progress bar control to tell
users how much the app has copied.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
7175
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be created if they don't already exist, and if the drive happens to be one a folder cannot be created on (ie a cdrom drive) it would just be skipped...
3
3027
by: Raghul | last post by:
hi I am having a problem. I want to copy a file from the folder and paste it or move it to another folder. Is it possible in python? Actually I need to implement this in the zope for my site. When I click any file it should move or copied to another folder in the same machine using zope. Thanks in advance.
3
3625
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore my settings if my profile became tampered with or corrupt. Is there any sample code available out there? -Robert
8
2941
by: Abhishek | last post by:
Hi there ! Can somebody help me understand how i can display the contents of a drive ( for example E:\ drive). I want to display all the contents of the CD-ROM by clicking a button on a form. The action of clicking the button should launch explorer to view all the contents of the CD. With thanks in advance... Abhishek
4
2042
by: Michael Nemtsev | last post by:
Use Win2003 Server and VS 2003. When I'm trying to debug COM+ lib, I've stumble over ShadowCopying feature, when my dll being copied in temporary folder, and I can't step in my dll. No breakpoits are rised. How to turn off Shadow Copying or to tell VS to debug moved DLL? -- WBR, Michael Nemtsev :: blog: http://spaces.msn.com/laflour
3
1342
by: Jeries Shahin | last post by:
Hi I am trying to copy files from a folder on a Novel machine, the folder is in the UMC format (i cannot map a network drive for some business reasons). Upon copying, it fires an IOException saying that the file does not exist. Any idea how can I do it? (the user copying is the Novel Administrator)
2
7985
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a network drive, copying the same files from the same source drive and to the same destination drive, it gives me the following exception: ...
2
962
by: rodchar | last post by:
hey all, how do you programatically get the filenames of a disc in a CD R/RW Rom Drive? thanks, rodchar
1
2252
by: skygremlin | last post by:
I am trying to write a simple VB app to copy all directories and files off a thumb drive to a directory on a pc. I have a couple things I am trying to automate. Final Build will: - Have multiple USB connections for multiple drives to copy from at the same time - Have seperate directories for each individual who will copy to the pc -...
0
7673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8109
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.