Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Creating directory in Program "C:\Program Files (x86)"
Forum Updated to NodeBB v4.3 + New Features

Creating directory in Program "C:\Program Files (x86)"

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k Views 2 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.
  • C Offline
    C Offline
    CppHamster
    wrote on 2 Oct 2017, 17:09 last edited by
    #1

    Good evening everyone!

    Is it possible to create a directory into the "C:\Program Files (x86)"?
    I've tried, but i couldn't do it.

    *the directory "C:\Program Files(x86)\CommonDir" already exists. And there are some folders here (created by installers). I just want to create another directory in this "CommonDir".

    *I've tried to run my program as Administator, but there is no result even in this case.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 2 Oct 2017, 17:16 last edited by
      #2

      Hi
      How did you try ?
      If you open a shell in admin mode and do
      mkdir fullpath
      does it work ?

      Also what windows ? after win 7 it became even more locked.
      https://social.technet.microsoft.com/Forums/windows/en-US/7b3ada32-181d-4c55-9259-ee44f5f83b82/cant-write-to-program-files-folder?forum=w8itprogeneral

      1 Reply Last reply
      2
      • C Offline
        C Offline
        CppHamster
        wrote on 2 Oct 2017, 17:24 last edited by CppHamster 10 Feb 2017, 17:28
        #3

        @mrjj My false: powershell in Admin mode solved my problem.
        Seems i've run the powershell not in admin mode before. Sorry:)

        Thank you!

        P.S.: I'm working on Windows 10.

        M 1 Reply Last reply 2 Oct 2017, 17:32
        1
        • C CppHamster
          2 Oct 2017, 17:24

          @mrjj My false: powershell in Admin mode solved my problem.
          Seems i've run the powershell not in admin mode before. Sorry:)

          Thank you!

          P.S.: I'm working on Windows 10.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 2 Oct 2017, 17:32 last edited by
          #4

          @CppHamster
          ah. well they locked it down good. :)

          1 Reply Last reply
          0

          1/4

          2 Oct 2017, 17:09

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved