Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I found this application online that requires some arguments to be passed to it when its called so it will display the information you want. I can get this to work with a batch file but i have several vbscripts that i need to convert inorder to use this application. below is the line that calls the application:
start "Loginscript" "%~dp0Progressbar.exe" /Max:10 /HideParent:1 /CloseWithParent:1 /Title:"Testing Remote Fix" /Status:"Running Fix..." /CommandFolder:"%Temp%\PB_%UserName%" /SilentlyContinue:1 

Now this is what im using in my batch files and the area's that have quatation marks need to have them inorder to work. I have tried using:
VB
Dim WshShell
Set WshShell = WScript.CreateObject("Wscript.Shell")

and then i would use WshShell.run and would list the path the exe is located at and then call the arguments right after it but when i add items like /status:"waiting" i get the error stating that the file cant be found. I have been looking through google and found information on double quotations and i m having a hard time getting it to work. I just started with scripting and need some help getting this to work. Thank you for your help.
Posted
Updated 7-May-12 4:50am
Comments
VJ Reddy 15-May-12 13:03pm    
Thank you for accepting the solution :)

1 solution

If you want to include double quotes within a string in VBScript then please try "" for " within the string as a similar issue was solved using "" here
http://www.codeproject.com/Messages/4224777/Re-Regular-Expressions-dealing-with-a-quote.aspx[^]
 
Share this answer
 
Comments
Sandeep Mewara 10-May-12 14:23pm    
5!
VJ Reddy 10-May-12 20:15pm    
Thank you, Sandeep.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900