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

windows10-wifi.py displays command prompt windows #44

Open
fluffydolphin opened this issue Dec 4, 2022 · 0 comments
Open

windows10-wifi.py displays command prompt windows #44

fluffydolphin opened this issue Dec 4, 2022 · 0 comments

Comments

@fluffydolphin
Copy link

fluffydolphin commented Dec 4, 2022

Depending on how you run this script it can end up showing command prompt windows due to the fact it is using subprocess so you can add shell = True to these to lines to hind the windows.

profile_info = subprocess.run(["netsh", "wlan", "show", "profile", name], shell = True, capture_output = True).stdout.decode()

profile_info_pass = subprocess.run(["netsh", "wlan", "show", "profile", name, "key=clear"], shell = True, capture_output = True).stdout.decode()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant