I'm having trouble solving the installation. I'm creating Czech Mods Localization and I need to resolve the installation using the .BAT file.
The trouble is that I want to publish my translations to players and not everyone has a game on the same disk, in the same folder and the same shortcut.
I need to write a program in CMD to "% HOMEDRIVE% \ Users \ Public \ Desktop \ shorcut.lnk" read and use the path to the correct folder.
The only thing that is unchanging is the startup name of the game file.
I'm using Windows 7, but this .BAT file could work universally on all other Windows.
I watched the posts here and on www.computerhope.com and attracted me there:
create a target.bat file and edit it
SET shortcut = ArcRegister.exe.lnk
SET vbscript = cscript // nologo DecodeShortCut.vbs
FOR / f "delims =" %% T in ('% vbscript%'% Shortcut% ") to SET target = %% T DEL DecodeShortCut.vbs
S: \ Test \ Vbs \ shortcut> target.bat
Target "C: \ Program Files \ ArcSoft \ VideoImpression 2 \ ArcRegister.exe"
If the .BAT file finds the right path as a variable, then it would be possible to copy
translation with surgical precision. I do not know how.
Something like: CZ_Localization_install.bat
COPY %HOMEDRIVE% \ Users \ User \ Downloads \ CZ_Localization \ . Shortcut SkyrimLauncher.exe.lnk
I think this could work if changes were made. But I do not understand exactly the content and I do not know how to modify this for my needs.
Anybody will advise me and, if possible, consult the one-sided. I can not speak english very well. Thank you in advance.