Windows 10: Permissions problems

Discus and support Permissions problems in Windows 10 Support to solve the problem; Hi all, I have been a long time linux user and now I am really confused by permissions in Windows 10. I created a python script in linux which works... Discussion in 'Windows 10 Support' started by Barrowman, Feb 27, 2016.

  1. Barrowman Win User

    Permissions problems


    Hi all,
    I have been a long time linux user and now I am really confused by permissions in Windows 10.
    I created a python script in linux which works fine and am now trying to get it to work in Windows.
    In C:\ProgramData there is a subdirectory into which I can paste files I have copied from a flash drive using File Explorer.
    I am the only user on this machine and am administrator.
    If I run the python script it seems to work without errors but the file never gets pasted.
    Even if i run the script from Command Prompt (Admin) it fails with no error messages.
    How does this all work and can I get it to work?

    Code: #!c:/Python27/pythonfrom Tkinter import * import tkFileDialog import tkMessageBox import os import time from ctypes import windll, byref, wintypes from ctypes.wintypes import SMALL_RECT root = Tk() STDOUT = -12 todir = "c:/ProgramData/SoundBox/Videos" #Pick a video file and copy it. def select_video(): myname=tkFileDialog.askopenfilename(initialdir="C:/") if myname =="": return() else: (filepath, filename) = os.path.split(myname) myfin = filename print myfin doit="copy " + myname + " " + todir print doit quit() hdl = windll.kernel32.GetStdHandle(STDOUT) rect = wintypes.SMALL_RECT(0, 50, 50, 30) # (left, top, right, bottom) windll.kernel32.SetConsoleWindowInfo(hdl, True, byref(rect)) select_video() root.mainloop()[/quote] I intend to end up with this as a gui program but am stuck at present
    tia.

    :)
     
    Barrowman, Feb 27, 2016
    #1

  2. start menu stopped working

    Cannot get start menu to pop up. Worked till yesterday, now won't. Turned off computer and back on - still won't work
     
    problems-problems, Feb 27, 2016
    #2
  3. permission problem

    Much better. As I mentioned before, you can replace the file only if it is not in use. You must now reboot the machine into Safe Mode with Shift+Restart, then repeat the procedure.
     
    Frederik Long, Feb 27, 2016
    #3
  4. Barrowman Win User

    Permissions problems

    Just an update.
    Here's what does work.
    Code: #!c:/python27/pythonw from Tkinter import * import tkFileDialog import tkMessageBox import os root = Tk() D = StringVar() D.set("") lab1 = Label(root, textvariable=D) lab1.pack() to_file="c:/programData/SoundBox/Videos/" def select_video(): global to_file inname=tkFileDialog.askopenfilename(initialdir="c:/") if inname =="": D.set("No File Chosen") return() else: D.set("Copying File, Please wait") (filepath, filename) = os.path.split(inname) inmessage = "inname is " + inname in_file = open(inname, 'rb') print inmessage indata = in_file.read() to_file +=filename print to_file out_file = open(to_file, 'wb') out_file.write(indata) quit() select_video() print "Alright, all done." root.mainloop()[/quote] Don't ask me why there should be a difference
     
    Barrowman, Feb 28, 2016
    #4
Thema:

Permissions problems

Loading...
  1. Permissions problems - Similar Threads - Permissions problems

  2. i have a mic permission problem for apps such discord and GeForce now

    in Windows 10 Gaming
    i have a mic permission problem for apps such discord and GeForce now: I tried ever possible solve on YouTube to add apps to mic permission but nothing worked https://answers.microsoft.com/en-us/windows/forum/all/i-have-a-mic-permission-problem-for-apps-such/cb8f11b6-22e1-446b-8695-edbafb7d838d
  3. i have a mic permission problem for apps such discord and GeForce now

    in Windows 10 Software and Apps
    i have a mic permission problem for apps such discord and GeForce now: I tried ever possible solve on YouTube to add apps to mic permission but nothing worked https://answers.microsoft.com/en-us/windows/forum/all/i-have-a-mic-permission-problem-for-apps-such/cb8f11b6-22e1-446b-8695-edbafb7d838d
  4. i have a mic permission problem for apps such discord and GeForce now

    in Windows 10 Customization
    i have a mic permission problem for apps such discord and GeForce now: I tried ever possible solve on YouTube to add apps to mic permission but nothing worked https://answers.microsoft.com/en-us/windows/forum/all/i-have-a-mic-permission-problem-for-apps-such/cb8f11b6-22e1-446b-8695-edbafb7d838d
  5. Windows Server Backup of Win 11 Client Unsuccessful Client VSS Problem Access Permissions?

    in Windows 10 Gaming
    Windows Server Backup of Win 11 Client Unsuccessful Client VSS Problem Access Permissions?: I have a WHS 2011 that backs up three PCs on my home network. The newest is a Windows 11 PC and the back up fails. The other two Windows 10 PCs continue to back up properly.The following is form the Event Viewer for the Windows Server on the PC in question. Are there things I...
  6. Windows Server Backup of Win 11 Client Unsuccessful Client VSS Problem Access Permissions?

    in Windows 10 Software and Apps
    Windows Server Backup of Win 11 Client Unsuccessful Client VSS Problem Access Permissions?: I have a WHS 2011 that backs up three PCs on my home network. The newest is a Windows 11 PC and the back up fails. The other two Windows 10 PCs continue to back up properly.The following is form the Event Viewer for the Windows Server on the PC in question. Are there things I...
  7. Problem with Apps and Folder/File Permissions

    in Windows 10 Gaming
    Problem with Apps and Folder/File Permissions: Hi,I have a problem very likely caused by wrong file permissions on Windows 10. This is about digital audio workstations DAW. The DAW application loads musical instruments called VST plugins. The VST plugins load presets aka patches or soundbanks of various musical...
  8. Problem with Apps and Folder/File Permissions

    in Windows 10 Software and Apps
    Problem with Apps and Folder/File Permissions: Hi,I have a problem very likely caused by wrong file permissions on Windows 10. This is about digital audio workstations DAW. The DAW application loads musical instruments called VST plugins. The VST plugins load presets aka patches or soundbanks of various musical...
  9. Problem with Apps and Folder/File Permissions

    in Windows 10 Customization
    Problem with Apps and Folder/File Permissions: Hi,I have a problem very likely caused by wrong file permissions on Windows 10. This is about digital audio workstations DAW. The DAW application loads musical instruments called VST plugins. The VST plugins load presets aka patches or soundbanks of various musical...
  10. Onedrive Access/Permission Problem

    in Windows 10 Software and Apps
    Onedrive Access/Permission Problem: The OneDrive icon in the task bar indicates "there is no access permission to item/s". Clicking on icon indicates a problem with Onedrive - Personal, that it has sync issues with Malwarebytes.Ink. This condition just materialized this morning . There have been no changes to...