I was working on developing a batch program that would scan various sections of a PC, and log them to a file. Surprisingly, I was unable to have the program create the file to write to. I then tried to create a file, that I was fairly certain would work; it is as followed:
@echo off
ipconfig > ip.txt
timeout 5
However, this was also unable to write to the file ip.txt
. I also attempted the following program, with no success.
@echo off
echo Test > test.txt
timeout 3
If anyone would be able to give advice, I would much appreciate it.
No error messages are present, and clicking the link batch file
Issue Resolved, downgraded to Win7 from Win10 and no longer experiencing the issue. Not a great fix.
C:\WINDOWS\System32
, but might fail due to lack of write privileges... – Lyall