britechguy
Well-Known Member
- Reaction score
- 4,029
- Location
- Staunton, VA
I could very easily be conflating what I'm remembering with something available under Unix or one of the Linux variants I've played with.
I could swear that there was a way to run either a single command, or even a BAT file, where you could specify that you be shown what the command(s) would act on if they were run, but that they don't actually run. It was essentially a way to double check yourself that what you believe your code would operate on is actually what it would operate on.
If such exists for Command Prompt and/or PowerShell, would someone refresh my memory? If it doesn't exist at all in Windows, but it rings a bell as working somewhere else, I'd love to know that, too, as I am sure I've done just this in the past. It's just been a lot of years since I was programming day to day and scripting day to day.
I could swear that there was a way to run either a single command, or even a BAT file, where you could specify that you be shown what the command(s) would act on if they were run, but that they don't actually run. It was essentially a way to double check yourself that what you believe your code would operate on is actually what it would operate on.
If such exists for Command Prompt and/or PowerShell, would someone refresh my memory? If it doesn't exist at all in Windows, but it rings a bell as working somewhere else, I'd love to know that, too, as I am sure I've done just this in the past. It's just been a lot of years since I was programming day to day and scripting day to day.