i know that the result of a switch statement is the stuff in {}, i want to generate kind of dynamic
switch case based on the result i.e number of files
For example:
lets say i have 5 files in the folder with static switch i can tell them choose any one of the 5 by giving option 1 2 3 4 5
as i told before, whenever the number of files change i need to edit my script to give that to user, i want to make that dynamic, i.e take the file name from the folder show that to user one by one and ask them to choose one , when they choose it should
create a task which is available under that dynamic switch
-
Edited by
Powershell-Admin
16 hours 54 minutes ago