Windows Vista Forums

An error appears
  1. #1


    p byers Guest

    An error appears

    Hello Experts

    I have a dotVBS file - the first few lines are shown below.

    *********************************************************************
    If WScript.Arguments.Count < 2 Then
    p1Text = ""
    p2Text = ""
    else
    p1Text = WScript.Arguments.Item(0)
    p2Text = WScript.Arguments.Item(1)
    end if

    Dim shell
    Set shell = CreateObject("WScript.Shell")

    if UCase(p1text) = "LOCAL" then
    dataBaseRoot = "V:\solo\"
    else
    dataBaseRoot = "c:\inetpub\wwwroot\solo\"
    end if


    if UCase(p2text) = "SHOW" then
    Wscript.Echo ("Job Started")
    end if





    DBConGC1 = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
    dataBaseRoot & "data\soloOnline.mdb"
    ''Response.Write DBConGC1
    ''Response.End
    set ConGC1 = CreateObject("ADODB.Connection")
    ConGC1.Open DBConGC1


    *********************************************************************


    It has worked every day successfully for over two years.


    Now it is giving an error

    Line: 10
    Char: 1
    Error: 0x8007013D
    Code: 8007013D
    Source: (null)

    Line 10 is:-
    Set shell = CreateObject("WScript.Shell")


    The dotVBS file has not changed

    I cannot find anything that heps on the Microsoft Site.


    Help or advice please

    Thanks
    Pete (Northolt UK)




      My System SpecsSystem Spec

  2. #2


    Pegasus \(MVP\) Guest

    Re: An error appears


    "p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
    news:4845492B.EC60EBB0@xxxxxx-ltd.co.uk...

    > Hello Experts
    >
    > I have a dotVBS file - the first few lines are shown below.
    >
    > *********************************************************************
    > If WScript.Arguments.Count < 2 Then
    > p1Text = ""
    > p2Text = ""
    > else
    > p1Text = WScript.Arguments.Item(0)
    > p2Text = WScript.Arguments.Item(1)
    > end if
    >
    > Dim shell
    > Set shell = CreateObject("WScript.Shell")
    >
    > if UCase(p1text) = "LOCAL" then
    > dataBaseRoot = "V:\solo\"
    > else
    > dataBaseRoot = "c:\inetpub\wwwroot\solo\"
    > end if
    >
    >
    > if UCase(p2text) = "SHOW" then
    > Wscript.Echo ("Job Started")
    > end if
    >
    >
    >
    > DBConGC1 = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
    > dataBaseRoot & "data\soloOnline.mdb"
    > ''Response.Write DBConGC1
    > ''Response.End
    > set ConGC1 = CreateObject("ADODB.Connection")
    > ConGC1.Open DBConGC1
    >
    >
    > *********************************************************************
    >
    >
    > It has worked every day successfully for over two years.
    >
    >
    > Now it is giving an error
    >
    > Line: 10
    > Char: 1
    > Error: 0x8007013D
    > Code: 8007013D
    > Source: (null)
    >
    > Line 10 is:-
    > Set shell = CreateObject("WScript.Shell")
    >
    >
    > The dotVBS file has not changed
    >
    > I cannot find anything that heps on the Microsoft Site.
    >
    >
    > Help or advice please
    >
    > Thanks
    > Pete (Northolt UK)
    Perhpas your source file has turned into a Unicode file?
    I would use notepad.exe to create this little program and
    see what happens when you run it. If it works then you
    can build it up until everything works.
    Set oShell = CreateObject("WScript.Shell")
    WScript.Echo oShell.CurrentDirectory



      My System SpecsSystem Spec

  3. #3


    Bob Barrows [MVP] Guest

    Re: An error appears

    p byers wrote:

    > Now it is giving an error
    >
    > Line: 10
    > Char: 1
    > Error: 0x8007013D
    > Code: 8007013D
    > Source: (null)
    >
    > Line 10 is:-
    > Set shell = CreateObject("WScript.Shell")
    >
    >
    > The dotVBS file has not changed
    >
    > I cannot find anything that heps on the Microsoft Site.
    >
    >
    Make sure the scrrun.dll is registered on the machine?
    What OS? Can you roll back recent windows updates?

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.



      My System SpecsSystem Spec

  4. #4


    Christophe Mathon Guest

    Re: An error appears

    Hello Pete,

    Few questions to understand the context
    1. What kind of session do you have ? Admin or guest?
    2. How do you start the script ? double click or cmd prompt ?
    3. Did you install an update or something since you have this error message
    ?

    Christophe Mathon



      My System SpecsSystem Spec

  5. #5


    p byers Guest

    Re: An error appears

    Thank you to all three experts that replied.
    An answer to some of the questions that you asked.

    OS - XP Pro - No Connections to the Internet - no updates done.
    Session = Admin
    Started from a "Scheduled dotBAT file" once a day in the quiet hours - no other
    users.

    Date Modified on the dotVBS file is 26 months ago.

    Will try slowly building up from small two line program.

    Any idea what the error Code means ?????

    Pete (Northolt UK)

    Christophe Mathon wrote:

    > Hello Pete,
    >
    > Few questions to understand the context
    > 1. What kind of session do you have ? Admin or guest?
    > 2. How do you start the script ? double click or cmd prompt ?
    > 3. Did you install an update or something since you have this error message
    > ?
    >
    > Christophe Mathon

      My System SpecsSystem Spec

An error appears problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blue screen of death appears out of nowhere due to app error please help iMosh Software 1 26 Jan 2010
Blue screen of death appears out of nowhere due to app error please help iMosh Vista hardware & devices 3 21 Jan 2010
strange error box appears WWARD34 General Discussion 3 12 Jan 2009
My email account appears to have an Error number 0x800CCC0E Nicolas Vista mail 1 26 May 2008
Error message box appears after double click on certain icons mr Lingo Vista General 1 10 Sep 2007