Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I find out if local workstation has software?

Status
Not open for further replies.

evergrean100

Technical User
Dec 1, 2006
115
US
Is there anyway I can check if a Windows workstation has PDF working on it.
Code:
if (?how do I check if a local workstation has pdf software so it can view a pdf file??)   
{
    document.write('<a href=mypdf.pdf>pdf</a>');
}
else
{
    alert('Cant bring up PDF');
}
 
The cmd prompt way would be
Code:
assoc | findstr pdf
If you can somehow run that to see if you get a result, then it will be a step forward
 
Thanks I tried this and it didnt work show anything on my page:

Code:
if (execCommand("assoc | findstr pdf");
{
    document.write('<a href=mypdf.pdf>pdf</a>');
}
else
{
    alert('Cant bring up PDF');
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top