2 followers Follow

Allow passing parameters to tasks

It would often be useful to pass parameters to scripts, especially when executing a one-time task.

For example, if I need to use a disk tool, I currently have to modify the script to change the drive:
'fsutil resource setautoreset true C:\' 

must become 'fsutil resource setautoreset true N:\'

Being able to pass parameters lets me just do:
'fsutil resource setautoreset true %1:\'
then specify the drive when I run the script.

Ryan Frame

Please sign in to leave a comment.



Hi Ryan,

From where would you like to change those parameters, you can just create a script that do this or set the environments on your machines.



IT-Man 0 votes