This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET VSWHERE_PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | |
IF NOT EXIST %VSWHERE_PATH% ( | |
ECHO ERROR: vswhere.exe not found! | |
GOTO End | |
) | |
SET PARAMS_BASE=-property displayName -latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib, "d3d11.lib") | |
#pragma comment(lib, "d3d12.lib") | |
#pragma comment(lib, "dxgi.lib") | |
#include <iostream> | |
#include <algorithm> | |
#include <string> | |
#include <vector> | |
#define __WRL_NO_DEFAULT_LIB__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <dxgi.h> | |
#pragma comment(lib, "dxgi.lib") | |
#pragma comment(lib, "dxguid.lib") | |
int main() | |
{ | |
wprintf(L"Available DXGI adapters and outputs:\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
CHCP 65001 | |
PUSHD %~dp0 | |
SET ffmpegexe="C:\Utils\FFmpeg\ffmpeg.exe" | |
FOR %%f IN (*.mp4) DO ( | |
%ffmpegexe% -i "%%f" -vframes 1 "%%~nf.jpg" | |
%ffmpegexe% -i "%%f" -i "%%~nf.jpg" -map 0:a -map 1:0 -c:v copy -codec:a libmp3lame -b:a 192k -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" "%%~nf.mp3" | |
DEL "%%~nf.jpg" |