::-Open the Skyrim Data folder-
::This will run on 64/32 bit systems
::and on Windows XP/Vista/7/8
::from any directory without knowing drive or path
::And will be faster than brute force search.
::Batch code by npocmaka, tiny edits by Dani.
::http://stackoverflow.com/questions/18704093/batch-file-to-open-and-sort-a-folder-that-has-an-unknown-path
::No sorting feature yet.
::No automatic file archiving yet.
@echo off
mode con cols=75 lines=50
echo(
echo(
echo(
echo A j
echo #M, N#
echo QM*~ *MM
echo pM9 lM^&
echo gN# p dM&
echo jMMV M^& l@N^&
echo jMM8 yMMMM#- M#M^&
echo _MMMP MMMMMMm, )NMMg
echo ,MMMM 4M7^ "7& MMMMg
echo _MMMM8 "~ jM l#MMM,
echo _MMMMM^& _pMF jMNMMMc
echo #MMMMMMMc _gNM5~' #MMMMMMM,
echo BMMMMM ` NMMM MMMMM#
echo #MMMMM8 ~QM ]MMMMM^&
echo pMMMMMM _ , MMg _ #MB#MM^&
echo 4MMMMMM# MNgp#, MMM _ggMF #MMMMMM^&
echo "MMMMMMMMmmgNMMMMM^&MMMMMMMMMggmMMMMNMMMf
echo "#MMMMMg2**#ZMMMMMN#MMMMM2@**~QMMMMMMF
echo =MMNRMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMP
echo 7MM^&B@MBMMMMMMM!^NMNMMMMMMMMMMNMM#
echo #MMWMMMM4MN2MMMpJMMMMBM7~MNMNMM@
echo QMMMZ" ~ *MQ7MM' M^ "MMMMN
echo PMQf] ^@~MM ' #MM'
echo #Mp1 ] 4M gMM'
echo `MMMg , M _#BM'
echo "MMMMp, [r" _gMM@(
echo +MMMMI j@ ]#MMM9
echo \MMMI jF,` ]BMMF
echo \#MI jZv #M'
echo YM^| #f
echo G^| ,^&
echo _#,
echo yM/
echo M^&
echo `Mg,g*^^
echo ^|QM# !
echo "QT/
echo "7
echo(
echo(
echo(
echo Searching for the Skyrim Data folder...
echo(
echo(
color
::for 64bit systems
REGEDIT.EXE /E "%temp%\skyrim.REG" "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bethesda Softworks\Skyrim"
::for 32bit systems
if errorlevel 1 REGEDIT.EXE /E "%temp%\skyrim.REG" "HKEY_LOCAL_MACHINE\SOFTWARE\Bethesda Softworks\Skyrim"
color
if not exist "%temp%\skyrim.REG" (
echo DONE! - Folder not found.
pause >nul
exit /b 1
)
for /f "tokens=2 delims==" %%S in ('type "%temp%\skyrim.REG" ^|find "Installed Path"') do (
set "skyrim_folder=%%~S"
)
set "skyrim_folder=%skyrim_folder:\\=\%"
del "%temp%\skyrim.REG" /S /Q >nul 2>&1
echo Opening:
echo ~~ %skyrim_folder%Data ~~
start explorer "%skyrim_folder%Data"
exit /b 0
goto :eof
::Do not use the following - Will take ages.
rem ::
rem :: find available disk drives
rem ::
for /f "tokens=1 delims= " %%D in ('fltmc volumes | findstr /C:"NTFS" /C:"FAT"') do (
set "disk_drives=%%D;"
)
rem ::
rem :: search
rem ::
for %%P (%disk_drives%) do for /f %%S in ('dir /b /s a:d %%P\*data ^|find "\common\Skyrim\Data"') do (
start explorer "%%S" && exit /b 0
)
echo skyrim not found
pause