RFA - OS - Windows 8 - Command Processor - Test context of -

#1
RFA - OS - Windows 8 - Command Processor - Test context of -

Hi Folks

Do you have Windows 8 ?
If so I'd appreciate your assistance.



Background -
Whilst attempting to upgrade a set of batch files to 'Windows 10' compatibility
I came across a change in the Command Processor's behaviour
from at least 'Windows 7', and all prior OS versions.

Previously, any batch file ran in the context of it's containing folder.

'Windows 10' runs any batch file in the context of C:\Windows\System32\.



Request -
I need to know how Windows 8 behaves.

Would some kind 'Windows 8' users, (both 8.0 and 8.1),
please -
- Download the attached ZIP.
- Extract to the root of their C drive.
- Run the batch file, TestBatchContext.bat, (N.B. right-click 'Run as admin')
- Upload the resulting log file in your reply.

N.B.
You might have to 'unblock' the downloaded zip.

TestBatchContext doesn't do anything nasty,
just reads the current folder path, its context, and your OS version number. :)

Many thanks
Paul Donnelly
 

Attachments

Last edited:
#3
Hi Doug

Many thanks for taking the time to test & reply
against your Windows 8.1 version.



Your TestBatchContext's overall success, was as expected.
i.e.
Confirming our 'Windows 8' ODG Configurator's beta-testers - 'no issues' against tool.


However,
your returned results, only further discomfitted me, :(
in that -
behaviours across various OS versions,
were more diverse than expected.



Doug -
Just for information,
as I don't have a W8.1 machine,
would you be kind enough to repeat the test,
this time by just DOUBLE-CLICKING the bat file ?
Then re-posting the resulting log file ?



Much appreciated.
ATB
Paul
 
Last edited:
#5
Cheers Doug.
Thanks for your assistance.



RESULTS -
For the CALLED batch file -

For 'Run as admin' -
W7 SP1 == C:\TestBatCalls\ChildFolder\CalledTarget.bat
W8.0 == TBD
W8.1 == C:\TestBatCalls\ChildFolder\CalledTarget.bat
W10 == C:\WINDOWS\system32\ChildFolder\CalledTarget.bat

For 'Double-Click' -
W7 SP1 == C:\TestBatCalls\ChildFolder\CalledTarget.bat
W8.0 == TBD
W8.1 == C:\TestBatCalls\ChildFolder\CalledTarget.bat
W10 == C:\TestBatCalls\ChildFolder\CalledTarget.bat



Much appreciated
ATB
Paul
 
Top