-
-
Notifications
You must be signed in to change notification settings - Fork 928
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
variabile scratchdisk #332
Comments
Hello! Plus, if you want to keep the console open, cd c:\path\to\the\folder\containing\the\script Then start the script .\tiny11maker.ps1 |
How can setup via parameter the value for "ValidatePattern" and "ScrtachDisk" See .ps1 sourfce code param ( Could be interesting for automatic batch. Example powershell -file Tinymaker.ps1 param1 param2 where param1 = disk letter |
thank you |
Hi @bovirus .\tiny11maker.ps1 A but as it this is the same as doing it without the param. Cause is this : if (-not $ScratchDisk) {
$ScratchDisk = $PSScriptRoot -replace '[\\]+$', ''
} else {
$ScratchDisk = $ScratchDisk + ":"
}
But, it's not a bad idea, so i've made a pr with your request don't know if it will be added 🤔 @elvisquaglia ur welcome ! 😸 |
Thanks for updated script. EWhats the difference in param1 : Letter of the choosen drive What's param1? What's chosen drive? |
@bovirus The difference between the two parameters
Imagine you want to use your local disk .\tiny11maker.ps1 D E So tiny11 will create the log and folder on After that you have a last interaction with the script to choose the index but as there is a lot of differents iso i think its better to let this as it. |
Thanks for explanation. Do you think that it's possible to add the explanation for param1/param2 as comment in the header of the script? For use of teh script in a batch I believe that could be better to have param1 for unit to mount iso file and param2 for curent unit for temporary file if you don't specifcy param1 ask in the script what's the unit for mount iso file If you don't specfy param2 you can get as default the unit where are you running the script. |
@bovirus .\tiny11maker.ps1 -Iso E -Scratch D I will modify params order soon The case |
hi, when I open the file in powershell it gives me this error, then I try to open it again with admin privileges but the shell closes immediately
The text was updated successfully, but these errors were encountered: