Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. problem in copying file

problem in copying file

Scheduled Pinned Locked Moved Windows API
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ShilpiP
    wrote on last edited by
    #1

    I am facing a problem in copying file in C:\windows\fonts folder in vista computer. my application is properly working on other machine but in vista i dont receive any error message but my file is not copying.can anyone give me solution y it is so

    Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

    J K 2 Replies Last reply
    0
    • S ShilpiP

      I am facing a problem in copying file in C:\windows\fonts folder in vista computer. my application is properly working on other machine but in vista i dont receive any error message but my file is not copying.can anyone give me solution y it is so

      Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      Hi, It's almost certainly a UAC issue. Try running your application as an administator (right click on the .exe and select "Run As Administrator") and see if it can now copy the file. If so, you need to either add a manifest file to your app so that vista will run it as admin, or temporarily elevate it each time you want to run it. regards,


      Jonathan Wilkes Darka [Xanya.net]

      1 Reply Last reply
      0
      • S ShilpiP

        I am facing a problem in copying file in C:\windows\fonts folder in vista computer. my application is properly working on other machine but in vista i dont receive any error message but my file is not copying.can anyone give me solution y it is so

        Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

        K Offline
        K Offline
        Kharfax
        wrote on last edited by
        #3

        Maybe the operation is beign virtualized, thats why you dont get any error, but the file isn't copied. You'll need to elevate your app to copy the file, or find a non protected place to copy your file. Sysinternals haves a free application, process explorer that you can use to see the security attributes of your app, and if is running virtualized. Also I sugest you to include the UAC manifest in your .exe, Vista heuristics are a pain in the ass.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups