Re: Getting Error Running Script



YW David.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"David Langschied" <DavidLangschied@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:16905FA6-7CB3-4E26-878E-925EE5E1404E@xxxxxxxxxxxxxxxx
I did not see that was missing! I had to change the line from the original
code and missed the parameter setting. Thanks!

"David Langschied" wrote:

Hi.
I am getting an error running a script on Win XP Pro SP2.
The script attempts to map a network drive ---

Option Explicit
Dim fServer
Dim fpublic
Dim wshNet

fServer = "\\corp-group"
fpublic = "\ati"
Set wshNet = CreateObject("WScript.Network")
wshNet.MapNetworkDrive "h:", fServer & fpublic , "ati", "tigers8874"

This results in the following error:

---------------------------
Windows Script Host
---------------------------
Script: C:\conndir.vbs
Line: 9
Char: 1
Error: Type mismatch.

Code: 80020005
Source: WSHNetwork.MapNetworkDrive


.



Relevant Pages

  • Re: Print Server Migration
    ... Windows Printing Team ... Has anyone else tested this script? ... Dim TranslateFile 'File that stores the old printer path and new printer ... We want to decomission the Windows NT print server, ...
    (microsoft.public.win2000.printing)
  • Re: Windows error
    ... some of the scripts with Windows syntax, therefore, it's probably better if I ... the only error I am receiving is related to windows script. ... Dim First_Name ... I am wondering if these formats are what is causing the error. ...
    (microsoft.public.excel.programming)
  • Re: Install the printer locally
    ... from the printer server) on Windows XP? ... Here is a script I wrote a while back and never used. ... Dim strComputer ... objPrinter.DriverName = "HP Color LaserJet 4500" ...
    (microsoft.public.scripting.vbscript)
  • Add to shell menu
    ... I ran across this script by Bill James which creates a shortcut on your ... [HKEY_CLASSES_ROOT\Drive\shell\Maximize the Windows Find Box] ... Dim ws, fso, scMaxFind ... Set scMaxFind = ws.CreateShortcut ...
    (microsoft.public.scripting.vbscript)
  • Re: vbscript or perl
    ... "David" wrote in message ... I've never done Windows scripting before. ... > install Active Perl on the target Windows box and rewrite the script ... Regarding the database: what is it and will it be converted to a Microsoft ...
    (microsoft.public.scripting.vbscript)

Loading