0

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

@echo off

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

Shortcut ArcRegister.exe.lnk

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.

  • Consider testing with mklink to create the pointer with it to what you need it to point to on the "public" desktop or whatever. Syntax MKLINK [[/D] | [/H] | [/J]] Link Target.... give it a simple try just to confirm in case this helps you solve this. – Pimp Juice IT Mar 26 '18 at 13:06
  • Thank you, but ... The MKLINK command helped only partially. Thanks to MKLINK, I can on C: create a Bridge that leads to %HOMERDIVE% Desktop. It is well. There is a problem with the illegibility of the path that is hidden in ShortCut Skyrim.lnk. – Paja Slimmjim Mar 28 '18 at 8:18
  • I do not want users to rename their ShortCut so I created this: MKLINK /d "C:\TempSkyrimPublicDesktop\" "%HOMEDRIVE%\Users\Public\Desktop" CD\ MKDIR TempSkyrimHelper COPY C:\TempSkyrimPublicDesktop\Skyrim*.lnk C:\TempSkyrimHelper CD TempSkyrimHelper COPY Skyrim*.lnk /D SkyrimPath.txt FIND /n /i "skyrim" SkyrimPath.txt – Paja Slimmjim Mar 28 '18 at 8:19
  • And the result is: ---------- SKYRIMPATH.TXT [177] SKYRIM ~ 1.EXE [259] C:\Games\The Elder Scrolls In Skyrim LE\SkyrimLauncher.exe – Paja Slimmjim Mar 28 '18 at 8:20
  • This looks good, but I can not use the FIND list into the .BAT file. I need to copy the information "C:\Games\The Elder Scrolls In Skyrim LE" from the line [259] without using the mouse and keyboard and use the information obtained to enter the path in the .BAT file: CD C:\Games\The Elder Scrolls In Skyrim LE\ Is it possible to use the FIND statement to automatically enter the path for the CD ??? – Paja Slimmjim Mar 28 '18 at 8:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.