Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8335577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:43:00+00:00 2026-06-09T03:43:00+00:00

In C# how can I copy a file from a camera to my local

  • 0

In C# how can I copy a file from a camera to my local drive? The camera is connected via USB and it does not show up as a standard drive.

I am using a Sony Handycam HDR-CX160. I want to write a small c# windowsform app that copies the video files from the device.

So how does my app copy files from the device connected via usb? It does not show up as a drive but it shows up in windows explorer. When I search drives in C# it is not in the list?

Thanks!

======== UPDATE =======

I am going to try and ask this question a different way and hopefully it will get reopened.

Using C# I need to copy a file from a camera to my local hard drive. If I new the path this line of code would do it.

string cameraPath = ?????
string sourcePath = Path.Combine(cameraPath, @"\Video\2012-1-1.WMV");
string targetPath =  @"C:\Video\2012-1-1.WMV";
System.IO.File.Copy(sourceFile, destFile, true);

So how can I resolve the cameraPath? Is there another way to do this all together?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:43:02+00:00Added an answer on June 9, 2026 at 3:43 am

    I don’t know the specifics about your device and the best bet is probably to use the software that came with your device.

    However, if a digital camera doesn’t present itself as a drive that you can read files from it may support Windows Image Acquisition . The easiest way to use that from C# is to use Windows Image Acquisition Automation Layer. Scott Hanselman has an old Coding4Fun article Look at me! Windows Image Acquisition on Channel 9.

    If you are able to remove the flash memory card from the camera you can also try to read this card using a card reader to get direct access to the files.

    Also, if you want to run your application when you connect the camera you need to register an AutoPlay event handler. There is an event for when a camera is connected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can Maven copy local file to a remote server using SSH? I want to
How i can copy one file from one directory to another directory using php
But how can I copy a file from one dv server to another with
I want to monitor the copy file function using Delphi. I can do it
I want to copy a file from \\Server\SharedFolder\NameOfFile.txt to \\Server2\SecondSharedFolder\NameOfFile - 1-10-2012.txt I can
for example, how can i copy file to c:/ from my resources file ?
I want to copy data from file to PostgreSQL DB using JDBC. I was
How can I instruct Eclipse to copy a file from my Android solution to
How can I copy a file from some Android app's assets folder, to somewhere
How can I copy a file from my project to the output directory with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.