Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can i create dxdiag.txt file automatic ? ( DirectX information text file )
    text
    copied!<p>I have a .BAT files i called it : DxDiag.BAT This is the content :</p> <pre><code>:: 24.07.2013 :: Dxdiag Miner 1.1 by me . :: Feel free to redistribute and/or modify the file at will, but it'd be nice if you were to give the author credit. :: Turn off echoing commands to the console, set colour to light green. @echo off Color 0A echo Dxdiag Miner v1.1 :: Check for dxdiag.exe, in case not found go to Dxdiag_Not_Found. echo Checking for dxdiag.exe... if not exist %systemroot%\system32\dxdiag.exe GOTO Dxdiag_Not_Found echo Dxdiag.exe found. :: Execute dxdiag.exe, pass the path to the file. echo Creating dxdiag file, please stand by... %systemroot%\system32\dxdiag.exe /t %USERPROFILE%\AppData\Local\testing\testing\SF_24-07-13\dxdiag.txt echo Dxdiag file created under the name of "dxdiag.txt" at %USERPROFILE%\Desktop :: Open the newly created file. %USERPROFILE%\Desktop\dxdiag.txt exit :Dxdiag_Not_Found echo Dxdiag.exe was not found. Please contact support for further help. pause exit </code></pre> <p>The first problem is that i want it to create the text file directly in a specific directory :</p> <pre><code>%systemroot%\system32\dxdiag.exe /t %USERPROFILE%\AppData\Local\testing\testing\SF_24-07-13\dxdiag.txt </code></pre> <p>The problem is that now the directory in the end is : SF_24-07-13 But sometimes it will be another date for example the directory will be : SF_28-07-13</p> <p>So how can i change/set it in the BAT file to find each time the correct directory ?</p> <p>What i wanted to do in c# that every user in windows if its xp vista 7 or 8 will click a button it will run the BAT file and create the dxdiag text file with all the information.</p> <p>This is what i did now but it's not working :</p> <pre><code>:: 13.08.2011 :: Dxdiag :: Feel free to redistribute and/or modify the file at will, but it'd be nice if you were to give the author credit. :: Turn off echoing commands to the console, set colour to light green. @echo off Color 0A echo Dxdiag Miner v1.1 :: Check for dxdiag.exe, in case not found go to Dxdiag_Not_Found. echo Checking for dxdiag.exe... if not exist %systemroot%\system32\dxdiag.exe GOTO Dxdiag_Not_Found echo Dxdiag.exe found. :: Execute dxdiag.exe, pass the path to the file. echo Creating dxdiag file, please stand by... echo off set today=%date:~7,2%-%date:~4,2%-%date:~10,4% echo %today% %systemroot%\system32\dxdiag.exe /t %USERPROFILE%\AppData\Local\Diagnostic_Tool_Blue_Screen\Diagnostic Tool Blue Screen\SF_today\dxdiag.txt echo Dxdiag file created under the name of "dxdiag.txt" at %USERPROFILE%\Desktop :: Open the newly created file. %USERPROFILE%\Desktop\dxdiag.txt exit :Dxdiag_Not_Found echo Dxdiag.exe was not found. Please contact support for further help. pause exit </code></pre> <p>The part i added is :</p> <pre><code>echo off set today=%date:~7,2%-%date:~4,2%-%date:~10,4% echo %today% %systemroot%\system32\dxdiag.exe /t %USERPROFILE%\AppData\Local\Diagnostic_Tool_Blue_Screen\Diagnostic Tool Blue Screen\SF_today\dxdiag.txt </code></pre> <p>I did SF_today also tried before SF_%today% The reason im adding SF_ before is that the directory is like this :</p> <pre><code>C:\Users\bout0_000\AppData\Local\Diagnostic_Tool_Blue_Screen\Diagnostic Tool Blue Screen\SF_24-07-13 </code></pre> <p>What am i doing wrong ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload