Cant edit files that have been created in windows shell

Discussion in 'Windows 8 Help and Support' started by djmacrae, Sep 16, 2015.

  1. djmacrae

    djmacrae New Member

    Joined:
    Sep 16, 2015
    Messages:
    2
    Likes Received:
    0
    When I create a file (or a script creates a file) in the windows command shell, I am unable to edit it from notepad++, ultraedit etc.

    I am logged in as Don (which is an administrator account). And files and folders created in windows Explorer have owner 'Don'.

    When I launch the Windows Command Shell as administrator, I notice that files and folders created from here have owner as 'Administrator'

    If I change the owner of the files created by Windows Shell to 'Don' it allows me to edit them with notepad++.

    I didnt use to have this issue so I'm assuming a setting on my PC got changed somehow (quite recently) or a windows update broke something.

    Or maybe the solution is to have a way to launch a Windows Shell box as the current user (Don) rather than as administrator - anyone know how to do this?
     
  2. Josephur

    Josephur Windows Forum Admin
    Staff Member Premium Supporter

    Joined:
    Aug 3, 2010
    Messages:
    1,019
    Likes Received:
    125
    What folder are you saving these files to? Even if the owner is Administrator as long as Don has read/write access it should work. Also launching Notepad++ as admin would work (I know not really the best thing to do).
     
  3. djmacrae

    djmacrae New Member

    Joined:
    Sep 16, 2015
    Messages:
    2
    Likes Received:
    0
    Hi, thanks for the reply.
    It is just a normal folder on my data-partition.

    I have changed the drives settings so I am owner and told it to apply the same settings to all sub folders and files. (The issue still remains though). This is what it looks like now. Does it look about right?

    If I create a file using Windows Shell, it does not have 'Don' listed as a user (see below for the settings that you get). Maybe this is the problem? How can I change this?

    e-drive-settings.JPG

    file-created-from dos-box.JPG
     

    Attached Files:

Share This Page

Loading...