Re: Still got problems running a VB Script

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Duncan Edment (duncan_at_edment.NO_SPAM.freeserve.co.uk)
Date: 02/16/05


Date: Wed, 16 Feb 2005 00:26:44 -0000

Mark,

Believe me, I a have typed & re-typed the line. I have checked &
re-checked the spelling. Everything is OK.

However, still it does not work. It used to work. But now it doesn't.
Nothing has changed. I haven't altered the script file or anything, but
now it refuses to work.

Duncan

-- 
Newsgroups are like one big sandbox that all of us
UseNet kiddies play in with peace & harmony.
Spammers, Cross-Posters, and Lamers are the
people that pee in our big sandbox.
To e-mail, please remove NO_SPAM.
"Mark L. Ferguson" <marfer_mvpREMOVE@hotmail.com> wrote in message 
news:eWlmwMqEFHA.3276@TK2MSFTNGP10.phx.gbl...
> You have some typo, or file corruption in that text. I don't see it. 
> Except for the parens, there is nothing wrong with the code I am 
> seeing on line 7.
> -e.g.---
> WshShell.Run "cmd /K CD c:\ & DIR"
> -- 
>
> Mark L. Ferguson (NOT an MS-MVP)
> FAQ for MS AntiSpy (browser version) 
> http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
> marfers notes for windows xp 
> http://www.geocities.com/marfer_mvp/chatNotes.htm
> .
> "Duncan Edment" <duncan@edment.NO_SPAM.freeserve.co.uk> wrote in 
> message news:%233Gbg8lEFHA.560@TK2MSFTNGP15.phx.gbl...
>> Mark,
>>
>> Using Start/Run works, and is what I have to do to get the program 
>> working.
>>
>> The correct path is "C:\Program Files\yproxy\yProxy.exe", which is 
>> what I have and I have just re-installed it.  Still, it does not 
>> work.
>>
>> Any other ideas?
>>
>> Duncan
>>
>> -- 
>> Newsgroups are like one big sandbox that all of us
>> UseNet kiddies play in with peace & harmony.
>>
>> Spammers, Cross-Posters, and Lamers are the
>> people that pee in our big sandbox.
>>
>> To e-mail, please remove NO_SPAM.
>> "Mark L. Ferguson" <marfer_mvpREMOVE@hotmail.com> wrote in message 
>> news:%23NJYLrcEFHA.2700@TK2MSFTNGP14.phx.gbl...
>>> "Error:   The system cannot find the file specified"
>>>
>>> Go to start/run, and type:  "C:\Program Files\yproxy\yProxy.exe 
>>> /address:news.freeserve.com /rport:119 /lport:118"
>>>
>>> Do a search for yProxy.exe If found, change to the correct path, if 
>>> not, reinstall yEnc
>>> -- 
>>>
>>> Mark L. Ferguson (NOT an MS-MVP)
>>> FAQ for MS AntiSpy (browser version) 
>>> http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
>>> marfers notes for windows xp 
>>> http://www.geocities.com/marfer_mvp/chatNotes.htm
>>> .
>>> "Duncan Edment" <duncan@edment.NO_SPAM.freeserve.co.uk> wrote in 
>>> message news:OwIyh1QEFHA.228@tk2msftngp13.phx.gbl...
>>>>I have a VB script that is run in my startup group, to start yENC 
>>>>decoding in various NGs.  The VB script itself is as follows:
>>>>
>>>> ' Start yProxy script
>>>>
>>>> ' Create shell object
>>>> Set WshShell = WScript.CreateObject("WScript.Shell")
>>>>
>>>> ' Easynews Server
>>>> WshShell.Run("C:\Program Files\yproxy\yProxy.exe
>>>> /address:news.easynews.com /rport:119 /lport:119")
>>>>
>>>> ' Freeserve Normal server
>>>> WshShell.Run("C:\Program Files\yproxy\yProxy.exe
>>>> /address:news.freeserve.com /rport:119 /lport:118")
>>>>
>>>> Everything used to work fine, until recently when I started to get 
>>>> the
>>>> following error when the script is run:
>>>>
>>>> Windows Script Host
>>>>
>>>> Script:  C:\Program Files\yProxy\Start yEnc.vbs
>>>> Line:    7
>>>> Char:   1
>>>> Error:   The system cannot find the file specified
>>>> Code:   80070002
>>>> Source: (null)
>>>>
>>>> As far as I can see, Line 7 is the one that starts "WshShell.Run(" 
>>>> but I
>>>> can't figure out what is wrong with it.  As I say, it used to work 
>>>> OK.
>>>> If I copy and paste the line into the Run box--missing out the
>>>> WshShell.Run--it works OK.
>>>>
>>>> Mark L Ferguson suggested:
>>>>
>>>> "VBScript uses a run command with no parens.
>>>>
>>>> shell.run  "mycommand""
>>>>
>>>> However, whrn I remove the parens, I still get the same error.
>>>>
>>>> Any ideas, anyone?
>>>>
>>>> Duncan
>>>> -- 
>>>> Newsgroups are like one big sandbox that all of us
>>>> UseNet kiddies play in with peace & harmony.
>>>>
>>>> Spammers, Cross-Posters, and Lamers are the
>>>> people that pee in our big sandbox.
>>>>
>>>> To e-mail, please remove NO_SPAM.
>>>>
>>>
>>>
>>
>>
>
> 


Relevant Pages

  • Re: Still got problems running a VB Script
    ... Sorry for the delay Mark. ... I've tried to run several other Script files and all run OK. ... Newsgroups are like one big sandbox that all of us ... It could be that you can reinstall Windows ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Still got problems running a VB Script
    ... Except for the parens, there is nothing wrong with the code I ... Mark L. Ferguson ... > people that pee in our big sandbox. ... >>>I have a VB script that is run in my startup group, to start yENC decoding in various NGs. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Still got problems running a VB Script
    ... This time, my script ... > people that pee in our big sandbox. ... >> Mark L. Ferguson ... Windows Script Host, and repair it. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Still got problems running a VB Script
    ... Do a search for yProxy.exe If found, change to the correct path, if not, reinstall yEnc ... Mark L. Ferguson ... >I have a VB script that is run in my startup group, to start yENC decoding in various NGs. ... > people that pee in our big sandbox. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Shutdown instead of restart.
    ... A shutdown troubleshooter http://aumha.org/a/shtdwnxp.htm ... Mark L. Ferguson ... I am using a vb script to shut down my XP professional. ...
    (microsoft.public.windowsxp.help_and_support)