Solved

VBSCRIPT - net send?

Posted on 2006-07-20
1
1,540 Views
Last Modified: 2009-12-16
Hi
Im using Win 2K Pro (not sure if that matters) but I try to do this in a .vbs file and it seems to open a command prompt real quick and then not do a netsend at all.

If I do
cmd
net send pc024 test
I do get a message

But not with my code below.

Set objShell = Wscript.CreateObject("WScript.Shell")
Comp2Reach = pc024
Message2Send = "test"
objShell.Run "net send " & Comp2Reach & " " & Message2Send

Thank!
0
Comment
Question by:hmcgeehan
1 Comment
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 20 total points
ID: 17144938
Hi,

Doesn't this:

Comp2Reach = pc024

need to be this:

Comp2Reach = "pc024"

I am guessing that the Comp2Reach is a string?

Regards,

Lee
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Menu Trouble 8 41
API Soap Calls 4 112
Getting dynamic value from 3rd party page and passing to a function on another page 1 106
Download a website to hdd 2 65
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now