CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Posts
    7

    Excrating a file

    Im wanting my program to extract a file from the 'Resources' area in the program and put it in the 'C:\Program Files (x86)\Folder\Folder\Folder\Folder\Folder', im not sure of the code as im a n00b at coding. If anyone could help me out that would be great!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Excrating a file

    Just OPEN the resource file, if it's your program... If it isn't, then we probably can't help.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

    Re: Excrating a file

    Well first of all the Program Files (x86) folder is not going to exist on some pcs, second those on which it does exist are going to deny write access to it so you are looking at a couple of issues right off the bat.
    Always use [code][/code] tags when posting code.

  4. #4
    Join Date
    Apr 2012
    Posts
    43

    Re: Excrating a file

    Quote Originally Posted by DataMiser View Post
    ...second those on which it does exist are going to deny write access to it...
    I'm not sure but if the application is running is the security context of an admin account that shouldn't be an issue. I've never explicitly tested this so I'm not certain.

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