CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Exclamation Noob Question - Basic Program!!!

    Hi All

    I’m not a programmer by any means - All I know is batch file "programming/scripting"

    So here is where I need ALOT of help and advice.....

    I have VB 2010 express. I would like to make a basic program that copies a file or directory from one place to another (source to destination)

    For example:
    I would normally use a batch file that would look like this......
    copy "C:\test.file" "D:\backup\test.file" /y
    Very simple

    I would like to have a browse button for the source and destination so I can tell the program what file/directory to copy and were and maybe link a progress bar to it to make it look FANCY:bigyello:

    PS - my level of know how when it comes to Visual Basic is pushing the debug button

    Thanks

  2. #2
    Join Date
    Aug 2009
    Location
    NW USA
    Posts
    173

    Re: Noob Question - Basic Program!!!

    Probably need to start with an easier project, like "Hello World" to get used to the language and interface

  3. #3
    Join Date
    Jun 2011
    Posts
    35

    Re: Noob Question - Basic Program!!!

    I'd agree with Mur16 assuming that you're trying to learn the language. If you really need to solve this issue is there any particular reason for .NET?

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Noob Question - Basic Program!!!

    have a look here http://www.vbdotnetheaven.com/Upload...nFileInVB.aspx

    The statement to copy a file is System.IO.File.Copy .....
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Noob Question - Basic Program!!!

    Well, this can also be pretty basic. I use this type of question for my students as well. Learning how to use the controls upfront is very essential.

    You could also make use of the FolderBrowserDialog to browse for folders :

    http://www.google.co.uk/search?q=fol...&aqi=&aql=&oq=

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured