I've been playing around with converting some old CMD scripts to
I've encountered what I consider to be strange behavior, but I'm sure
a programmer-type can probably explain
I was trying to work out how to execute an EXE from within a PoSh
script, and I found a few references that prefix your command with the
&. This appears to work, though I haven't found any documentation/help
to detail it's use.
My issue is when I try to call the Microsoft tool: oscdimg.exe. I've
already found the limitation that when calling executables from within
PoSh that they need to be in the path *grumbles*....
The command line is: &oscdimg.exe -m -n -bd:\Images\Boot\etfsboot.com
The error I'm receiving is:
ERROR: Could not open boot sector file "D:"
So it seems to be having issues finding the etfsboot.com file.
Now oscdimg.exe is in the path, and the parameters are correct because
if I run this in CMD.exe it works. It also works if I put the command
in a CMD file and call that from PoSh (would like to avoid having to
do though!). I have also tried putting the etfsboot.com file both in
the path and same directory as the calling PS1 script.