Detecting WSH 
Author Message
 Detecting WSH

Has anyone seen an easy solution to detecting if WSH is installed fram a
.cmd file???

Thanks,
Mike



Sun, 02 May 2004 04:02:03 GMT  
 Detecting WSH
This will work on Windows NT (Windows 2000 and XP comes
with WSH installed, so there should not be a need for
testing there). It will *not* work on W9x/ME, wscript.exe
is placed in the windows folder there.

IF EXIST %WINDIR%.\SYSTEM32\WSCRIPT.EXE GOTO WSHEXISTS
ECHO. WSH is not installed.
GOTO END

:WSHEXISTS
ECHO. WSH is installed.
GOTO END:

:END

Quote:
>-----Original Message-----
>Has anyone seen an easy solution to detecting if WSH is
installed fram a
>..cmd file???

>Thanks,
>Mike



Sun, 02 May 2004 04:38:35 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Detecting WSH on client

2. Detecting WSH version.

3. how to detect wsh installed version?

4. How do I detect WSH version?

5. Detect OS in WSH

6. Detecting OS in WSH

7. Detect OS in WSH using VB

8. Detect OS in WSH using VBScript

9. Detect OS in WSH using VBscript

10. Detecting Battery Mode programatically (WSH)

11. How to detect the presence of WSH?

12. Detect if WSH is installed, and if not install it (from command line)

 

 
Powered by phpBB® Forum Software