cant save files to system folder

Page 2 of 2 FirstFirst 12

  1. Posts : 9
    Windows 7 Home Basic 32bit
    Thread Starter
       #11

    but why cant I still write there.
      My Computer


  2. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
       #12

    Hello Surfexplorer,

    In Windows 7, since Vista, anything from an external source (ex: internet, USB, etc...) must be saved and/or extracted to any user folder (ex: Desktop, Downloads, etc...) in the C:\Users\(user-name) folder first. Afterwards, if you are an administrator, you will be able to move it to a system location.

    System locations, anything other than C:\Users\(user-name) folders, are protected and will not let any outside source save to them directly. It's a security feature to protect your system.

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 9
    Windows 7 Home Basic 32bit
    Thread Starter
       #13

    Hi Brink, thanks for replying.

    I am trying to make a program that will automatically create a directory. I have attached picture for reference.

    But I cant make a directory because it cannot create a directory.

    Anyway, I can see on my c:\Users\User folder where User is the name of the folder, it has a Shield picture on the folder.

    Kindly help. I dont understand 7.
    Attached Thumbnails Attached Thumbnails cant save files to system folder-untitled.jpg  
      My Computer


  4. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
       #14

    See if using the location below will work. Both are the same location, but different way.

    C:\Users\(User-Name)\Documents

    or

    %userprofile%\My Documents
      My Computer


  5. Posts : 8
    Windows 7 Professional 64Bit
       #15

    I agree with logicearth, the user directory is where you are going to want to store information regarding that perticular user. If you are wanting to hide information from the user so they cannot just open the file and read it, then may i recommend storing your information to a file in binary mode?
      My Computer


  6. Posts : 9
    Windows 7 Home Basic 32bit
    Thread Starter
       #16

    ok. I guess I found the problem.

    if this is the local app data path (c:\users\user) and I want to create directory c:\users\user\test\password

    then I need to create c:\users\user\test before I can create c:\users\user\test\password directory.

    the question now, why is the behavior of windows7 and vista unlike in xp?
      My Computer


  7. Posts : 5,642
    Windows 10 Pro (x64)
       #17

    surfexplorer said:
    ok. I guess I found the problem.

    if this is the local app data path (c:\users\user) and I want to create directory c:\users\user\test\password

    then I need to create c:\users\user\test before I can create c:\users\user\test\password directory.

    the question now, why is the behavior of windows7 and vista unlike in xp?
    VB6 mkdir does not make paths, can only make one subdirectory at a time. Nothing to do with Win7 or Vista. Maybe there is someone on this board that still uses VB6 to program but I doubt it. So I don't think you will find much help concerning that.

    http://www.devx.com/vb2themax/Tip/18706
      My Computer


  8. Posts : 9
    Windows 7 Home Basic 32bit
    Thread Starter
       #18

    thanks for the info logicearth. actually using mkdir is an advice from me from vbforums. previously i was using fso.createfolder.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:55.
Find Us