× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'd probably just do 
CMD('Start "C:\TEMP\Change~1\createActionDoc.vbs" 77778 "A very long
description"') 
or try "escaping" the quotes to acknowledge their status as embedded
special characters: 
CMD('Start ""C:\TEMP\Change Control\createActionDoc.vbs"" 77778 ""A very
long description""')

John A. Jones, CISSP
Americas Information Security Officer
Jones Lang LaSalle, Inc.
V: +1-630-455-2787 F: +1-312-601-1782
john.jones@xxxxxxxxxx

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Pantzopoulos
- (H/O)
Sent: Thursday, June 22, 2006 8:13 PM
To: midrange-l@xxxxxxxxxxxx
Subject: RUNRMTCMD and string parameters.

I am having a major problem with the RUNRMTCMD CMD parameter in regard
to the use of quotes with a path name which contains an embedded blank.

In essence, I want to run a vbscript program which accepts two
parameters. One is a 5 digit number, and the other is a string.
The vbscript program is in a folder which contains a blank in the path
name. 
Here is the CMD value:

RUNRMTCMD CMD('Start "C:\TEMP\Change Control\createActionDoc.vbs" 77778
"A very long description"') RMTLOCNAME('192.168.1.127' *IP)
RMTUSER(*NONE)    

77778 is a parameter to createActionDoc, as is A Very Long Description

When I issue this I get a message box with 77778 in the title and a
message saying  that Windows Cannot Find 7778. I presume this means that
windows thinks that 77778 is a program.

If I place the double quotes round the whole string after Start, I get a
new window, but nothing gets started:

RUNRMTCMD CMD('Start "C:\TEMP\Change Control\createActionDoc.vbs 77778 A
very long description"') RMTLOCNAME('192.168.1.127' *IP) RMTUSER(*NONE)

If I remove the double quotes from the path and restrict it to the
parameter string, windows tells me it can't find C:\TEMP\Change.
This of course is the path to the first blank in the path name. 

  RUNRMTCMD CMD('Start C:\TEMP\Change Control\createActionDoc.vbs 77778
"A
  very long description"') RMTLOCNAME('192.168.1.127' *IP)
RMTUSER(*NONE)

I can always place an underscore in between Change & Control, but I'd
rather not. I'd like to get on top of what is happening under the
covers.

Thanks In Advance.



Mike Pantzopoulos

EIG-Ansvar Limited
Tel  : 61 (3) 8630 3193
Fax:  61 (3) 9614 2740
Mob: 0403 809 442 


************************************************************************
*********************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient, any use, disclosure or
copying of this message is unauthorised. If you have received this
message in error, please reply using the sender's email address. 

This footnote confirms that this email message has been scanned for
computer viruses. EIG-Ansvar Limited does not accept liability for any
loss or damage, whether caused by our own negligence or not, that
results from a computer virus or defect in the transmission of this
email or any attached file. 

EIG-Ansvar Limited - Australia (A.B.N. 21 007 216 506) Email :
insure@xxxxxxxxxxxxxxxx

Eig-Ansvar Limited - New Zealand
Email : insure@xxxxxxxxxxxxxxxx

************************************************************************
*********************************
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



This email is for the use of the intended recipient(s) only.  If you have 
received this email in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this email without the author's prior permission.  
We have taken precautions to minimize the risk of transmitting software 
viruses, but we advise you to carry out your own virus checks on any attachment 
to this message.  We cannot accept liability for any loss or damage caused by 
software viruses.  The information contained in this communication may be 
confidential and may be subject to the attorney-client privilege. If you are 
the intended recipient and you do not wish to receive similar electronic 
messages from us in future then please respond to the sender to this effect.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.