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. Full Permission. Why is it so HARD after all these years, to FIX this problem? Does Mr...

    in Windows 10 BSOD Crashes and Debugging
    Full Permission. Why is it so HARD after all these years, to FIX this problem? Does Mr...: Hello I own my computer. I have paid for the OS. I am the ONLY person using it. WHY is it IMPOSSIBLE to MOVE and COPY or randomly SAVE some files into seemingly random NONSYSTEM folders? Why is it so HARD to enable FULL PERMISSIONS on my own files?folders? How do they...
  3. how to fix problem message of "no write permission to specific location"

    in Windows 10 Drivers and Hardware
    how to fix problem message of "no write permission to specific location": when scanning pic or doc on Kodak printer am getting this message-"no write permission to specific location" so I cannot save the scan. Why is this happening, and what is needed to fix it??...
  4. File and Folder Permission Problem in Windows 10 v1809

    in AntiVirus, Firewalls and System Security
    File and Folder Permission Problem in Windows 10 v1809: There appears to be a serious bug in Windows 10 v1809. To reproduce the symptom, try this using default Windows GUI tools: 1. Create an arbitrary file, named "TEST" for example. 2. Remove file permission inheritance from TEST. ("Disable Inheritance", choose to copy...
  5. problem with directory permissions / installation

    in Windows 10 Software and Apps
    problem with directory permissions / installation: I run a piece of software called videopsalm. It was working fine for several months, then after a windows update it started having problems writing the temp files it needs. (unable to find/write temp files in documents subfolders) I've uninstalled it and I'm trying to...
  6. Permissions and sharing problems

    in Windows 10 Network and Sharing
    Permissions and sharing problems: Hi, This is a 2 part question which derived from the same even, but I'll ask the more important question first. My main hard drive which has windows installed suddenly died so I replaced it, reinstalled everything including Windows 10 pro again. I have 4 other HDD's...
  7. family permissions problem

    in User Accounts and Family Safety
    family permissions problem: Windows 10, Minecraft. ALWAYS wants to ask for permissions, profile says "always allow" but keeps asking for permissions. Have never been able to let my kid play. ANYBODY got an idea how to get this to work?...
  8. Permissions problem running some troubleshooters from Settings

    in Windows 10 Support
    Permissions problem running some troubleshooters from Settings: Hi, if I try to run some troubleshooters from Settings, I receive a permissions error. If I run the same troubleshooter from the Control Panel, it's fine. Example: [img] [img] msdt.exe is the process in question here, but I've seen the same happen with others. This...
  9. lost permissions/encryption problem

    in Windows 10 Support
    lost permissions/encryption problem: I have just installed windows 10/64 with all the updates. I saved my previous downloads folder to a USB memory stick. Now I can't access those files anymore as there is a gold padlock on each of them and message appears saying that I don't have permission to access those...
  10. Windows 10: "Permissions" problems: can't share entire hard drive Lan

    in Windows 10 Network and Sharing
    Windows 10: "Permissions" problems: can't share entire hard drive Lan: The Error message I get when trying to access the shared drive is "You do not have permissions to access <drive>. Contact your network administrator to request access." Current windows 10 version is 1803 build 17134.345 x64. None of the computers on the network have...