⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p723_logon.ws

📁 javascript source code part2
💻 WS
字号:
<?xml version="1.0" standalone="yes"?>

<!--

   logon.ws

   This file is the monster logon script which establishes
   connection of set file and printer shares, checks for current
   version of antivirus SW install, synchs local system time
   with a network resource, and opens browser window to 
   company intranet

-->

<job id="jobLogon">

   <object id="objIE" progid="InternetExplorer.Application" />

   <resource id="resUpgrade">
      You have an old version of AntiVirusVendor Software installed.
      Please install the latest version from the following Web site:

         http://intranetsite/virus/

      Upgrade now?
   </resource>

   <script language="jscript" src="\\\\someserver\\shared\\commonObj.js">
   </script>
   <script language="jscript"
           src="\\\\someserver\\shared\\mapDriveOrPrinter.js">
   </script>
   <script language="jscript" src="http://intranetsite/virus/latest.js">
   </script>
   <script language="jscript" src="http://intranetsite/virus/antivirus.js">
   </script>
   <script language="jscript">
      <![CDATA[
         // map three network drives
         // syntax: MapDrive(sharename, driveletter)
         MapDrive("\\\\appserver\\apps", "Z");
         MapDrive("\\\\fileserver\\files", "Y");
         MapDrive("\\\\toolserver\\tools", "X");

         // connect a network printer (only if OS is Windows NT)
         // syntax: AddPrinter(printerpath)
         AddPrinter("\\\\printserver\\share");

         // synchronize computer's clock with a central time source
         objShell.Run("net time \\\\timeserver /set /yes");

         // is latest anti-virus software installed?
         // functionality pulled in from 'latest.js' & 'antivirus.js'
         CheckAntiVirusStatus();

         // open a browser window onto the company intranet
         // unless user chose to upgrade anti-virus SW
         // then go to anti-virus site
         if (6 == iVirusRet)    // "yes" chosen in upgrade dialog
         {
            objIE.Navigate("http://supde/virus/");
         }
         else
         {
            objIE.Navigate("http://supde/");
         }
         objIE.Visible = true;
      ]]>
   </script>
</job>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -