This is my second question - a pretty quick sequence! Essentially, at the moment, I am running a powershell script, which I am running manually, and passing arguments to the CMD line, for example:
PostBackupCheck.Ps1 C 1 Hello Test Roger
They are placed in variables and used in the script.
Is there any way to add these lines line by line to a text file, for example:
C 1 Hello Test Roger 0 C 2 Hello Test Roger 1 C 3 Hello Test Roger 2
And then run the Powershell script to use the first line, make a script, then go back and use the next line, execute the script, loop back and so on.
So in context - I need to mount images in the following naming context
SERVERNAME_DRIVELETTER_b00x_ixxx.spi
Where
SERVERNAME = Some string DRIVELETTER = Some Char b00X - where X is some abritrary number ixxx - where xxx is some abritrary number
So in my text file:
MSSRV01 C 3 018 MSSRV02 D 9 119
And so on. It uses this information to mount a specific backup image (via ShadowProtect
mount.exe SERVERNAME_DRIVELETTER_b00x_ixxx.spi
Thanks!
source share