use below code... test.vbx file ----------------
c:\ Set args = Wscript.Arguments For Each arg In args Wscript.Echo arg '' or you can do any operation with the argument value Next >From a command prompt, run the script like this: CSCRIPT c:\<File Path>\MyScript.vbs 1 2 A B Will give results like this: 12 A B Let me know if you have any issue On Fri, Jul 5, 2013 at 10:58 AM, Priyanka Gajjar < [email protected]> wrote: > Hi Suman, > > First go to location where your script is located using cd > > then use wscript script.vbs > > it is working at my end ,let me know if any queries. > > Thanks > Priyanka > > On Wednesday, July 3, 2013 12:11:13 PM UTC+5:30, suman ch wrote: > >> Hi All, >> >> I am trying to run a vbs file from cmd prompt using cscript.exe. But I am >> geting the following error. >> >> C:\Users\chasu33\Desktop\**Active.vbs(4, 2) (null): The server process >> could not b >> e started because the configured identity is incorrect. Check the >> username and p >> assword. >> >> Any suggestions..? >> >> Regards, >> Suman Ch >> > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
