"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