Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- color 0f
- echo Micro$oft Windows [Version blah blah]
- echo (c) 2018 Microsoft Corporation. No rights reserved.
- echo.
- echo C:\Users\%USERNAME%>
- Get-ExecutionPolicy -Scope CurrentUser
- echo.
- echo.
- echo.
- if %1=="--get" goto get
- if %1=="--set" goto set
- if %1=="--del" goto del
- if %1=="--help" goto help
- echo
- :get
- echo C:\Users\%USERNAME%> ADS %1 %2 %3
- get-content -path %2 -stream %3
- :set
- echo C:\Users\%USERNAME%> ADS %1 %2 %3
- set-content -path %2 -stream %3
- :del
- echo C:\Users\%USERNAME%> ADS %1 %2 %3
- remove-content -path %2 -stream %3
- :help
- echo USAGE: ADS [--option] [PATH] [STREAM]
- echo.
- echo.
- echo Example: ADS --get "C:\Users\%USERNAME%\Documents\hello.txt" mystream
- echo.
- echo.
- echo Zone Help
- echo Value Setting
- echo ——————————
- echo 0 My Computer
- echo 1 Local Intranet Zone
- echo 2 Trusted sites Zone
- echo 3 Internet Zone
- echo 4 Restricted Sites Zone
Add Comment
Please, Sign In to add comment