Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to close this statement out properly

Reply
 
Old 10-05-2009   #1 (permalink)
Whispering Leaf


 
 

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
Old 10-05-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: How to close this statement out properly


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

>
> 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
Old 10-05-2009   #3 (permalink)
Tom Lavedas


 
 

Re: How to close this statement out properly

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

> 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
Old 10-05-2009   #4 (permalink)
Pegasus [MVP]


 
 

Re: How to close this statement out properly


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

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


My System SpecsSystem Spec
Old 10-05-2009   #5 (permalink)
Whispering Leaf


 
 

Re: How to close this statement out properly

yeop, I sure did, sorry.

"Pegasus [MVP]" wrote:
Quote:

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

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

Thread Tools


Similar Threads
Thread Forum
Vista Mail won;t close properly when exited. Vista mail
WMP 11 Does not close properly Media Center
Vista 64x mail won't close properly when exiting Vista mail
CD didn't close properly & photos lost Vista music pictures video
Program Fails to Close Properly Software


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46