Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutdown is not recognized as a external or internal command #28

Closed
AnkitMitraOfficial opened this issue Jan 5, 2021 · 6 comments
Closed
Labels
Closed Issue or feature request has been resolved user question Question Regarding the Module from a User

Comments

@AnkitMitraOfficial
Copy link

whenever I try to do --
pywhatkit.shutdown(time=10)#any time
I get the error -- shutdown is not recognized as a external or internal command

Anyone with the same error?

Can anyone help me with this how to fix it, is the problem with the module or my computer?
I am using windows 7 32 bit, python I am using - 3.8.6

@Ankit404butfound
Copy link
Owner

Can you please mention the OS you are working on.

@aaryanrr
Copy link
Collaborator

aaryanrr commented Jan 7, 2021

Can you try to run the shutdown -s command in your command prompt and tell if it worked

@AnkitMitraOfficial
Copy link
Author

Can you please mention the OS you are working on.

windows 7, 32 bit

@AnkitMitraOfficial
Copy link
Author

Can you try to run the shutdown -s command in your command prompt and tell if it worked

nope. didn't worked!

@aaryanrr
Copy link
Collaborator

aaryanrr commented Jan 7, 2021

Then it is a problem with your system. Shutdown is an external command i.e., it has its own executable in C:\Windows\System32 and if the path variables are not correctly configured or the executable is missing it may result in this error. See this for help. If it does not resolve the issue try contacting Microsoft Support.

@Ankit404butfound
Copy link
Owner

@aaryanrr is right, I think shutdown.exe is not in your path.

@aaryanrr aaryanrr added Closed Issue or feature request has been resolved user question Question Regarding the Module from a User labels Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Issue or feature request has been resolved user question Question Regarding the Module from a User
Projects
None yet
Development

No branches or pull requests

3 participants