Jump to content

CWD

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About CWD

CWD's Achievements

0

Reputation

  1. I have a batch file for a simple software installation. The only way I have found to create a desktop shortcut as part of the installation is with a nifty utility called Shortcut.exe found here for free: http://www.optimumx.com/download/#Shortcut Problem is, there is a different Shortcut.exe for each version of Windows, which I have downloaded and renamed them like shortcut_XP.exe, shortcut_2000.exe etc. I am running on XP Pro and it works great with the shortcut_XP.exe, but I will need a way to direct the action to the correct version of the shortcut.exe by detecting the basic windows os being used. I can use VER to get the os version, but then that includes some very specific version info as well in the string. I cannot find a way of parsing the string and extracting just the "XP" to use in a variable. Is something like this even possible in a batch file? If not, any suggestions as to how to approach this differently?
×
×
  • Create New...