- Jul
- 534
- 10
I passed my first batfile parameter in 1988, why am I failing to do it now?
Literally, I am calling my own AskYN.bat file like this (and echo'ing the call to the screen first, just to be sure it's right):
And AskYN.bat starts right off with capturing the %1 parameter which I echo immediately afterward — sample output below:
Yet... "Delete the original archive" is not being successfully passed as %1
HOW IS THIS POSSIBLE?!?!?!
i feel like i'm going crazy.
something is very fundamentally wrong with this situation.
I've lost over an hour on this.
So this is what happens.... As you can see, askyn is called with a first parameter .... and somehow that first parameter, when received, is the name of the archive I just unpacked with 7z.exe and not the "Delete the original archive" that is passed!
How the heck is %1 being overridden? This makes no sense.
this should never happen
it's... impossible for this to happen
but it's happening, so it's not impossible
how is this happening?!
i can't fix it because there's no sense to this
It feels like 7z.exe is somehow causing parameter passing to not work after being called... So i included my 7z.exe [which succeeds with many .7z archives that the internal 7z command fails with]
Literally, I am calling my own AskYN.bat file like this (and echo'ing the call to the screen first, just to be sure it's right):
And AskYN.bat starts right off with capturing the %1 parameter which I echo immediately afterward — sample output below:
Yet... "Delete the original archive" is not being successfully passed as %1
HOW IS THIS POSSIBLE?!?!?!
i feel like i'm going crazy.
something is very fundamentally wrong with this situation.
I've lost over an hour on this.
So this is what happens.... As you can see, askyn is called with a first parameter .... and somehow that first parameter, when received, is the name of the archive I just unpacked with 7z.exe and not the "Delete the original archive" that is passed!
How the heck is %1 being overridden? This makes no sense.
this should never happen
it's... impossible for this to happen
but it's happening, so it's not impossible
how is this happening?!
i can't fix it because there's no sense to this
It feels like 7z.exe is somehow causing parameter passing to not work after being called... So i included my 7z.exe [which succeeds with many .7z archives that the internal 7z command fails with]
Attachments
Last edited: