0

I am trying to make a website for batch files. Since batch files only work on Windows computers I want to find a code that recognizes the difference from Windows and other devices. Once I have this code I tell it to display a check mark and the download link on windows and on other platforms (iPhones, Android phones, ChromeBooks, etc.) It will say your device is not compatible with this file. I haven't found anything on the web even similar to this.

Ashitaka
  • 18,514
  • 5
  • 51
  • 68
Thomas
  • 35
  • 1
  • 3
  • 7

1 Answers1

1

This javascript checks if the user uses windows.

if(navigator.appVersion.indexOf("Win") != -1){document.write('using windows');};

Goudgeld1
  • 182
  • 11