klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: How to use chmod in pc....

Sun Jan 22, 2017 4:30 pm

supra wrote:Using Windows 10; Python 3.6.0a1
How do I execute chmod in pc. I have file called hello_world.py inthat folder C:\Users\Python36\Documents\PyChat.
I want to execute chmod 755 hello_world.py or chmod +x hello_world.py
I appreciate your help.
You cannot use chmod or any other Linux command on a Windows system.
In order to use those commands the file must reside on a Linux formatted filesystem such as ext4.

If you want to run a python script is Windows then Google [How to run python script in Windows]
Last edited by klricks on Sun Jan 22, 2017 4:39 pm, edited 1 time in total.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to use chmod in pc....

Sun Jan 22, 2017 4:37 pm

klricks wrote: You cannot use chmod or any other Linux command on a Windows system.
That's not quite true.
https://msdn.microsoft.com/en-gb/comman ... tall_guide
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: How to use chmod in pc....

Sun Jan 22, 2017 5:20 pm

That's not quite true.
Yeah, but who would want to?

Actually, I think I had a version of "chmod" for DOS/Windows decades ago.
I'm not sure (certainly not at the current time) exactly what it did, though.
If this post appears in the wrong forums category, my apologies.

peterlite
Posts: 720
Joined: Sun Apr 17, 2016 4:00 am

Re: How to use chmod in pc....

Mon Jan 23, 2017 1:50 am

Boot your PC with a live version of Linux Mint or similar. You might eventually move to dual boot then switch most of your work over.

Return to “Python”