Last active
August 11, 2018 18:06
-
-
Save szkrd/5113ede545c87234bf5199e6fec76d59 to your computer and use it in GitHub Desktop.
Creates opener links for all the PC Settings in Windows 10, so a file indexer can pick them up without an effort.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const getContent = (command) => | |
`Set oShell = CreateObject ("WScript.Shell") : oShell.run "cmd /c start ${command}", 0, False` | |
const items = { | |
'PC Settings': 'ms-settings:', | |
'Closed captioning': 'ms-settings:easeofaccess-closedcaptioning', | |
'High contrast': 'ms-settings:easeofaccess-highcontrast', | |
'Keyboard': 'ms-settings:easeofaccess-keyboard', | |
'Magnifier': 'ms-settings:easeofaccess-magnifier', | |
'Mouse': 'ms-settings:easeofaccess-mouse', | |
'Narrator': 'ms-settings:easeofaccess-narrator', | |
'Other options': 'ms-settings:easeofaccess-otheroptions', | |
'Battery Saver': 'ms-settings:batterysaver', | |
'Battery Saver settings': 'ms-settings:batterysaver-settings', | |
'Battery use': 'ms-settings:batterysaver-usagedetails', | |
'Power and sleep': 'ms-settings:powersleep', | |
'Backgrounds': 'ms-settings:personalization-background', | |
'Colors (display)': 'ms-settings:colors', | |
'Colors (personaliation)': 'ms-settings:personalization-colors', | |
'Date and time': 'ms-settings:dateandtime', | |
'Display': 'ms-settings:display', | |
'Mouse and touchpad': 'ms-settings:mousetouchpad', | |
'Personalization': 'ms-settings:personalization', | |
'Region and language': 'ms-settings:regionlanguage', | |
'Screen rotation': 'ms-settings:screenrotation', | |
'Speech': 'ms-settings:speech', | |
'Start': 'ms-settings:personalization-start', | |
'Themes': 'ms-settings:themes', | |
'Typing': 'ms-settings:typing', | |
'Airplane mode': 'ms-settings:network-airplanemode', | |
'Bluetooth': 'ms-settings:bluetooth', | |
'Cellular': 'ms-settings:network-cellular', | |
'Data usage': 'ms-settings:datausage', | |
'Dialup': 'ms-settings:network-dialup', | |
'DirectAccess': 'ms-settings:network-directaccess', | |
'Ethernet': 'ms-settings:network-ethernet', | |
'Manage Wi-Fi': 'ms-settings:network-wifisettings', | |
'Mobile hotspot': 'ms-settings:network-mobilehotspot', | |
'Proxy': 'ms-settings:network-proxy', | |
'Wi-Fi': 'ms-settings:network-wifi', | |
'VPN': 'ms-settings:network-vpn', | |
'For developers': 'ms-settings:developers', | |
'Offline maps': 'ms-settings:maps', | |
'Optional features': 'ms-settings:optionalfeatures', | |
'Account info': 'ms-settings:privacy-accountinfo', | |
'Calendar': 'ms-settings:privacy-calendar', | |
'Camera': 'ms-settings:privacy-webcam', | |
'Contacts': 'ms-settings:privacy-contacts', | |
'Feedback': 'ms-settings:privacy-feedback', | |
'Location': 'ms-settings:privacy-location', | |
'Messaging': 'ms-settings:privacy-messaging', | |
'Microphone': 'ms-settings:privacy-microphone', | |
'Motion': 'ms-settings:privacy-motion', | |
'Other devices (privacy)': 'ms-settings:privacy-customdevices', | |
'Privacy': 'ms-settings:privacy', | |
'Radios': 'ms-settings:privacy-radios', | |
'Speech, inking, and typing': 'ms-settings:privacy-speechtyping', | |
'Connected devices': 'ms-settings:connecteddevices', | |
'Family and other users': 'ms-settings:otherusers', | |
'Lockscreen': 'ms-settings:lockscreen', | |
'Notifications and actions': 'ms-settings:notifications', | |
'Proximity': 'ms-settings:proximity', | |
'Signin options': 'ms-settings:signinoptions', | |
'Storage Sense': 'ms-settings:storagesense', | |
'Tablet mode': 'ms-settings://tabletmode/', | |
'Windows Update': 'ms-settings:windowsupdate', | |
'Work access': 'ms-settings:workplace' | |
} | |
Object.keys(items).forEach(key => fs.writeFile(`${key}.vbs`, getContent(items[key]), () => console.log(key))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment