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. Permissions/Admin problems after changing Windows Key

    in User Accounts and Family Safety
    Permissions/Admin problems after changing Windows Key: I recently upgraded my motherboard/cpu/and ram. Originally, my Windows 10 installation was a free upgrade from a Windows 7 installation that I'd had. Swapping to new parts invalidated my activation, and I was forced to purchase a new key. After re-activating Windows, I've...
  3. Odd File Permissions Problem

    in Windows 10 Network and Sharing
    Odd File Permissions Problem: I am running into an odd file permissions problem. Here's what I did: Purchased new 4 TB SATA drive and installed it in my machine Tried using Casper Secure Drive Backup to do a sector copy from the old drive now relabeled M: to the new drive now labelled J: - the same...
  4. permission problems

    in Windows 10 Ask Insider
    permission problems: So either this has been going on a while or I'm just now noticing it but I install a program the other day for 3D projects and I tried to save my project and it wouldn't let me because the file save location couldn't be found, looked around and someone said the folder might...
  5. Problem with Permissions in Windows 10

    in AntiVirus, Firewalls and System Security
    Problem with Permissions in Windows 10: Windows 10. Suddenly all my permissions are messed up and I don't have permission to do anything with any of my folders and files. I can't edit, save or save as. It's like Windows 10 has shut me off from all my folders and files. I don't know anything about how...
  6. win10: apps uninstalling on their own,shortcuts turning into white sheets,& permission problem.

    in Windows 10 Network and Sharing
    win10: apps uninstalling on their own,shortcuts turning into white sheets,& permission problem.: my problem appeared today out of nowhere as i restarted my laptop at first it was just one app that got uninstalled & the shortcut turned into white sheet(when i click on it it asks me to delete the shortcut).. so i restarted the pc again to find that more shortcuts turned...
  7. how can i fix ask for permission problem when i go to google chrome?????..... i can't get...

    in User Accounts and Family Safety
    how can i fix ask for permission problem when i go to google chrome?????..... i can't get...: I can't get into google chrome and I get a message that tell me to ask a permission for an adult however I am an adult!!!!!!!!!!!!!!! please tell me a useful solution for this problem._....
  8. Problem with permissions

    in Windows 10 Network and Sharing
    Problem with permissions: After Windows 10 May 2019 update, my access to files on my other network-connected computers has been limited. I can access the files using Quick Access and change to the desired folders but if I open Internet Explorer and try to open a file, the other computer is identified...
  9. Problem setting/over-riding file/folder permissions

    in Windows 10 Network and Sharing
    Problem setting/over-riding file/folder permissions: I have a problem with a program that routinely copies files from one network drive to another. After much work, it appears the problem is due to file permissions that prevent the copy. All files are my own and I need a way of forcing permissions on all files as a means of...
  10. 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...