Windows Vista Forums

How to close this statement out properly
  1. #1


    Whispering Leaf Guest

    How to close this statement out properly


    Case "MOS-IT"
    WSHNetwork.MapNetworkDrive "V:", "\\YFILE01\Files\" & UserString

    I'm getting an Expected statement error.

    I'm a scripting lightweight, i know I'm missing a quote here or something
    small at the end, right?



    Thanks.


      My System SpecsSystem Spec

  2. #2


    Pegasus [MVP] Guest

    Re: How to close this statement out properly


    "Whispering Leaf" <WhisperingLeaf@newsgroup> wrote in
    message news:E915E479-2C3B-4195-B798-2377C12ECAC7@newsgroup

    >
    > Case "MOS-IT"
    > WSHNetwork.MapNetworkDrive "V:", "\\YFILE01\Files\" &
    > UserString
    >
    > I'm getting an Expected statement error.
    >
    > I'm a scripting lightweight, i know I'm missing a quote here or something
    > small at the end, right?
    >
    > Thanks.
    I don't know if you're a scripting lightweight but your code fragment
    certainly is! You must post enough of your code so that the structures are
    obvious (e.g. your Select Case statement) and that we can see the
    definitions of your objects and variables. You must also tell us which line
    raises the error.



      My System SpecsSystem Spec

  3. #3


    Tom Lavedas Guest

    Re: How to close this statement out properly

    On Oct 5, 9:51*am, Whispering Leaf
    <WhisperingL...@newsgroup> wrote:

    > Case "MOS-IT"
    > * * * * * *WSHNetwork.MapNetworkDrive "V:", "\\YFILE01\Files\" & *UserString
    >
    > I'm getting an Expected statement error.
    >
    > I'm a scripting lightweight, i know I'm missing a quote here or something
    > small at the end, right?
    >
    > Thanks.
    There isn't anything wrong with the snippet you've posted, but there
    is very little to go on here. Without the rest of the Select/Case
    block it seems impossible to find the syntax problem.

    Is it possible to post a bit more of the script and the exact error
    message?

      My System SpecsSystem Spec

  4. #4


    Pegasus [MVP] Guest

    Re: How to close this statement out properly


    "Whispering Leaf" <WhisperingLeaf@newsgroup> wrote in
    message news:B813D570-CC83-47FE-90B3-1281BD1D775E@newsgroup

    >I had the statements before the select, Duh.
    >
    > Figured it out.
    >
    .. . . which you omitted from your first post!



      My System SpecsSystem Spec

  5. #5


    Whispering Leaf Guest

    Re: How to close this statement out properly

    yeop, I sure did, sorry.

    "Pegasus [MVP]" wrote:

    >
    > "Whispering Leaf" <WhisperingLeaf@newsgroup> wrote in
    > message news:B813D570-CC83-47FE-90B3-1281BD1D775E@newsgroup

    > >I had the statements before the select, Duh.
    > >
    > > Figured it out.
    > >
    >
    > .. . . which you omitted from your first post!
    >
    >
    >

      My System SpecsSystem Spec

How to close this statement out properly problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Mail won;t close properly when exited. jiannu Vista mail 3 24 Apr 2009
WMP 11 Does not close properly drumstik59 Media Center 6 18 Apr 2009
Vista 64x mail won't close properly when exiting jiannu Vista mail 6 07 Apr 2009
CD didn't close properly & photos lost Spikey Sue Vista music pictures video 3 24 May 2008
Program Fails to Close Properly ktriebol Software 0 13 Feb 2008