/build/static/layout/Breadcrumb_cap_w.png

How to write a VBScript command for CMD parameters?

I have below install parameters that i use to install setup with CMD. I have Deployment Script (VBS) that i will be using to deploy the package. I have been getting error: End of Statement expected. Any suggestion on what exact VB command would it be for below.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>"PathToSetupFile\Setup.exe" /UL1034 /V"SERIALNUMBER=1111-111
1-1111-1111-1111 COUNTRY=202"

 


3 Comments   [ + ] Show comments
  • This is a common trip-up for scripting rookies.

    VBScript uses double-quote marks to enclose strings but the string you're trying to use also uses quotes. Therefore, use the ASCII code for the double-quote character which is 'Chr(34)'. Arguably, use of that ASCII code also makes your script easier to read. - anonymous_9363 10 years ago
  • Thank you for the information. However, i am pretty new to all this. Is there a way you can provide with the VBScript code. - shrestha.rajiv.k 10 years ago
  • Use shell.run () method serrch on this for more details - shreyas 10 years ago

Answers (0)

Be the first to answer this question

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ