I added a couple of directories to my Windows PATH. For the purpose of testing the access to them,
they were added to both the USER and SYSTEM PATHS (I know I really need to only add them to one or the other
but I was interested in testing the process and then was going to remove the SYSTEM entry).
The folder hierarchy is this: C:\FDR ONE\FDR-TWO\FDR-THREE
\ FDR-FOUR
I added this to both PATHS: C:\FDR ONE\FDR-TWO and then for the purpose of additional testing
I edited the PATHS to this: C:\FDR ONE\FDR-TWO\
FDR-TWO contains: - test2.txt
FDR-THREE contains: - test3.txt
- TEST-BAT.BAT
FDR-FOUR contains: - test4.txt
I ran all tests in CMD and from this dir. - C:\FDR ONE\FDR-TWO\FDR-THREE
TEST 1: started TEST.BAT containing: myapp <test3.txt > test3.out 2> test3.err - worked OK
TEST 2: started TEST.BAT containing: myapp <test2.txt > test2.out 2> test2.err - The system cannot find the file specified.
TEST 3: started TEST.BAT containing: myapp <test4.txt > test4.out 2> test4.err - The system cannot find the file specified.
AS long as I used the TXT file in the same folder as the .BAT I didn't have an issue. However accessing the TXT files
in the other directories failed consistently. So, it appears that Windows is not checking the folders I added to the PATHS.
I must have missed something but don't know what that could be. I thought I had added the new PATH correctly. The
env. variables for both USER and SYSTEM display with my folders path at the bottom of the lists.
Does anyone have any suggestions to address my issue?
thanks
Edition Windows 11 Home
Version 22H2
Installed on 8/27/2023
OS build 22621.2283
Experience Windows Feature Experience Pack 1000.22662.1000.0
Device name BRIAN
Processor 13th Gen Intel(R) Core(TM) i5-1335U 1.30 GHz
Installed RAM 32.0 GB (31.7 GB usable)
Device ID 41EC106D-93F3-49AB-A5E2-F3ED7AF3131E
Product ID 00342-22174-08151-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
they were added to both the USER and SYSTEM PATHS (I know I really need to only add them to one or the other
but I was interested in testing the process and then was going to remove the SYSTEM entry).
The folder hierarchy is this: C:\FDR ONE\FDR-TWO\FDR-THREE
\ FDR-FOUR
I added this to both PATHS: C:\FDR ONE\FDR-TWO and then for the purpose of additional testing
I edited the PATHS to this: C:\FDR ONE\FDR-TWO\
FDR-TWO contains: - test2.txt
FDR-THREE contains: - test3.txt
- TEST-BAT.BAT
FDR-FOUR contains: - test4.txt
I ran all tests in CMD and from this dir. - C:\FDR ONE\FDR-TWO\FDR-THREE
TEST 1: started TEST.BAT containing: myapp <test3.txt > test3.out 2> test3.err - worked OK
TEST 2: started TEST.BAT containing: myapp <test2.txt > test2.out 2> test2.err - The system cannot find the file specified.
TEST 3: started TEST.BAT containing: myapp <test4.txt > test4.out 2> test4.err - The system cannot find the file specified.
AS long as I used the TXT file in the same folder as the .BAT I didn't have an issue. However accessing the TXT files
in the other directories failed consistently. So, it appears that Windows is not checking the folders I added to the PATHS.
I must have missed something but don't know what that could be. I thought I had added the new PATH correctly. The
env. variables for both USER and SYSTEM display with my folders path at the bottom of the lists.
Does anyone have any suggestions to address my issue?
thanks
Edition Windows 11 Home
Version 22H2
Installed on 8/27/2023
OS build 22621.2283
Experience Windows Feature Experience Pack 1000.22662.1000.0
Device name BRIAN
Processor 13th Gen Intel(R) Core(TM) i5-1335U 1.30 GHz
Installed RAM 32.0 GB (31.7 GB usable)
Device ID 41EC106D-93F3-49AB-A5E2-F3ED7AF3131E
Product ID 00342-22174-08151-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
My Computer
System One
-
- OS
- Windows 11 HOME
- Computer type
- Laptop
- Manufacturer/Model
- HP LAPTOP 17 - cn3xxx
- CPU
- 13th Gen Intel(R) Core(TM) i5-1335U 1.30 GHz
- Memory
- 32.0 GB (31.7 GB usable)
- Hard Drives
- 2 TB