- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- BackOffice Products
- >
- variable in net send
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2003 03:54 AM
тАО03-27-2003 03:54 AM
variable in net send
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2003 07:31 AM
тАО03-27-2003 07:31 AM
Re: variable in net send
NET SEND /? from a Command Prompt in WINXP SP1 reveals:
The syntax of this command is:
NET SEND
{name | * | /DOMAIN[:name] | /USERS} message
Roger
Roger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2003 07:43 AM
тАО03-27-2003 07:43 AM
Re: variable in net send
%1 will be the message I'm sending.
Usage: send "text of the message"
SEND.BAT
if %1!==! goto error
net send * %1
net send /DOMAIN:PHOENIX %1
goto end
:error
echo need to supply a message
:end
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2003 07:55 AM
тАО03-27-2003 07:55 AM
Re: variable in net send
Joana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2003 01:15 PM
тАО03-27-2003 01:15 PM
Re: variable in net send
Yes, it's possible. For example:
>rem set value of variable named IPaddr to 192.168.0.1
>set IPaddr=192.168.0.1
>rem sending message "IP 192.168.0.1 goes down" to computer called "test"
>net send test "IP %IPaddr% goes down"
Variable in output string will be replaced by it's value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2003 09:48 PM
тАО03-27-2003 09:48 PM
Re: variable in net send
exec 'net send * Node down: ' + $a;
or...
cmd_str = "net send * Node down: " + $a;
exec &cmd_str;
Jon