Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in system\monitorInfo.bat file opener is missing #8

Closed
miermontoto opened this issue Apr 15, 2017 · 1 comment
Closed

in system\monitorInfo.bat file opener is missing #8

miermontoto opened this issue Apr 15, 2017 · 1 comment

Comments

@miermontoto
Copy link

miermontoto commented Apr 15, 2017

In between endlocal and del ~.txt /q /f >nul 2>nul, ~.txt is missing. On its current state, the file won't open any file. Also, adding if EXIST in the first deletion command would make everything cleaner.

Final state of the file:

@echo off
if EXIST ~.txt del ~.txt /q /f >nul 2>nul
start "" /w dxdiag /t ~
setlocal enableDelayedExpansion
set currmon=1
for /f "tokens=2 delims=:" %%a in ('find "Current Mode:" ~.txt') do (
echo Monitor !currmon! : %%a
set /a currmon=currmon+1

)
endlocal
~.txt
del ~.txt /q /f >nul 2>nul

I would have opened a pull request but I have no idea on how to do it.

@npocmaka
Copy link
Owner

The idea is the result to be printed in the console. In the ~.txt there's a lot of information that probably you'll never need. Though if you prefer to see the file itself for sure you can use the modified version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants