i need help with 'wscript.run' 
Author Message
 i need help with 'wscript.run'

i have an external executable that will do paging.  
it is 'nvpage.exe'.  
the cmd line looks like this:

i'm trying to use it in a .vbs.  the pager number will be a variable
and the message will be a variable.  the wscript syntax looks like
this:

this will work perfect.  but when i try using variables i can't get it
right to make it work. example:

space=chr(32)
pager="1234567"
msg="This is my text message."
ending=chr(34) + chr(41) ' this is the ending characters= ")


anybody know how to handle this so i can use variables?

tia



Wed, 29 May 2002 03:00:00 GMT  
 i need help with 'wscript.run'
While + and & can both be used to concatenate strings, VB Script can have
problems using + when the string is all numbers, as in a pager PIN number.
Also, I don't think you can fake the ") at the end, it just becomes part of
the string.  Also, embed the space after nvpage and mobilecom rather than
declaring another variable, if the format isn't going to change.


pager="1234567"
msg="This is my text message."

 wscript.run(appstring)

--
Visit this part of my home page for some helpful
Cosmetic, Security and Utility Tweaks for Win98.
http://members.xoom.com/dbknox/registry/index.htm
New Tweaks and Files added often.


Quote:
> i have an external executable that will do paging.
> it is 'nvpage.exe'.
> the cmd line looks like this:

> i'm trying to use it in a .vbs.  the pager number will be a variable
> and the message will be a variable.  the wscript syntax looks like
> this:

> this will work perfect.  but when i try using variables i can't get it
> right to make it work. example:

> space=chr(32)
> pager="1234567"
> msg="This is my text message."
> ending=chr(34) + chr(41) ' this is the ending characters= ")


> anybody know how to handle this so i can use variables?

> tia



Wed, 29 May 2002 03:00:00 GMT  
 i need help with 'wscript.run'

There's also no such method as WScript.Run...

set shell = createobject("wscript.shell")
shell.run <whatever>

--
Michael Harris


  While + and & can both be used to concatenate strings, VB Script can have
  problems using + when the string is all numbers, as in a pager PIN number.
  Also, I don't think you can fake the ") at the end, it just becomes part of
  the string.  Also, embed the space after nvpage and mobilecom rather than
  declaring another variable, if the format isn't going to change.


  pager="1234567"
  msg="This is my text message."

   wscript.run(appstring)

  --
  Visit this part of my home page for some helpful
  Cosmetic, Security and Utility Tweaks for Win98.
  http://members.xoom.com/dbknox/registry/index.htm
  New Tweaks and Files added often.



  > i have an external executable that will do paging.
  > it is 'nvpage.exe'.
  > the cmd line looks like this:

  >
  > i'm trying to use it in a .vbs.  the pager number will be a variable
  > and the message will be a variable.  the wscript syntax looks like
  > this:

  >
  > this will work perfect.  but when i try using variables i can't get it
  > right to make it work. example:
  >
  > space=chr(32)
  > pager="1234567"
  > msg="This is my text message."
  > ending=chr(34) + chr(41) ' this is the ending characters= ")
  >

  >
  > anybody know how to handle this so i can use variables?
  >
  > tia



Wed, 29 May 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. i need help with 'wscript.run'

2. Run-time error '91' - HELP

3. HELP needed with 'eoclip' error message

4. WScript.GetObject doesn't get running Word App

5. WScript don't run under Win95 ???

6. WScript.Shell Run Doesn't Work???

7. Wscript.shell Run doesn't work

8. Script won't run with WSCRIPT/CSCRIPT

9. WScript don't run under Win95 ???

10. WScript.GetObject doesn't get running Word App

11. Run-time error '429': ActiveX component can't create object

12. Error: object required: 'WScript'

 

 
Powered by phpBB® Forum Software