@echo off setlocal set "flag=%APPDATA%\KinoNacht\firstRun.flag" :: Prüfen ob Flag-Datei existiert if not exist "%flag%" ( powershell -WindowStyle Hidden -Command "Add-Type -AssemblyFramework;[System.Windows.MessageBox]::Show('Lege alle Filme in den Ordner Desktop\\Filme und klicke OK, um das Script zu starten.','KinoNacht Umbenenner','OK','Information')" :: Flag-Datei anlegen mkdir "%APPDATA%\KinoNacht" 2>nul echo done > "%flag%" ) set "tempJS=%TEMP%\renameFilme_temp.js" set "url=https://git.viper.ipv64.net/M_Viper/renameFilme/raw/commit/876d90a6c1fd46a0e9cf9ad256dc839abfcbd4e0/renameFilme.js" powershell -Command "Invoke-WebRequest -Uri '%url%' -OutFile '%tempJS%'" start "" /b node "%tempJS%" exit