You can convert a .LNK file to an equivalent .BAT file using Shortcut.exe program (http://www.optimumx.com/downloads.html ). To do that, run Shortcut with /f:filename.lnk and /a:q parameters and send the output to a .TXT file this way:
SHORTCUT /F:Shorcutname.lnk /A:Q > Shortcutname.txt
Then edit Shortcutname.txt with Notepad to assemble the equivalent DOS commands that achieve the same operations of the Shortcut, that is, change current directory to WorkingDirectory and then execute TargetPath with Arguments.
For example, if Shorcutname.txt is this:
[MS-DOS.lnk]
TargetPath=%SystemRoot%\system32\cmd.exe
TargetPathExpanded=C:\WINDOWS\system32\cmd.exe
Arguments=/k PROMPT=$P$_$G
ArgumentsExpanded=/k PROMPT=$P$_$G
WorkingDirectory=%HOMEDRIVE%
WorkingDirectoryExpanded=C:
RunStyle=1
IconLocation=%SystemRoot%\system32\cmd.exe,0
IconLocationExpanded=C:\WINDOWS\system32\cmd.exe,0
HotKey=0 (None)
Description=Performs text-based (command-line) functions.
You must convert previous file to these two lines:
CD C:
C:\WINDOWS\system32\cmd.exe /k PROMPT=$P$_$G
Finally, rename previous file as a .BAT file.
Please note that if WorkingDirectory value is empty, then the Shortcut just opens a folder, so the equivalent .BAT file just must have a CD command to TargetPath.
I will try later to write a program that achieve the previous conversion, so let me know if you are interested in such a program.
Regards...