Introduction:
In this article I will explain how to run vbscript or .vbs file and how to debug vbscript or .vbs file using visual studio.
In this article I will explain how to run vbscript or .vbs file and how to debug vbscript or .vbs file using visual studio.
Description:
One day I got requirement like to work with vbscript during that time I don’t have idea on vbscript to run script file and I face too much problem to know how to debug vbscript. At that time I decided to write a post to explain how to run vbscript file and how to debug vbscript file or .vbs file using visual studio.
One day I got requirement like to work with vbscript during that time I don’t have idea on vbscript to run script file and I face too much problem to know how to debug vbscript. At that time I decided to write a post to explain how to run vbscript file and how to debug vbscript file or .vbs file using visual studio.
Now we have vbscript file with name Test.vbs we want to run vbscript file to check the output for that we need to do one thing that is just double click on that vbscript file automatically that script will execute and perform the operations written inside of vbscript file that’s it very simple one.
If we want to make modifications in vbscript file then select your vbscript file (Ex: Test.vbs) and open with either NotePad or Visual studio once your modifications are done save the file and double click on your vbscript file (Ex: Test.vbs).
Till now we learned how to modify vbscript file and how to run vbscript or .vbs file. Suppose if I want to debug vbscript file then how I can do that one.
To debug vbscript file or .vbs file follow below steps
First Open Command Prompt and point to the folder wherever your script file will exist. Here I am pointing to folder D because my script file (Test.vbs) will exist in that folder once we point to required folder type command cscript /x /d Test.vbs
After enter the command click on enter button whenever we click on enter button we are able to see Just-In-Time debugger window in that select required version of visual studio to debug your vbscript file. Now here I am selecting Visual Studio 2005 and click Yes button.
After click yes button it will open script file with debugger like this
I hope it helpful for the people who are in need with this type of requirement. Happy coding.....
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
17 comments :
I`ve just seen for the first time a file with vbs ext.
all i learned is to write inside it:
msgbox " "
what else i can write inside it???
Hi,
is there any converter to convert vbscript to javascript?
Hey buddy, indeed it is very useful. I was not aware of it. But is there a way by which we can add a watch window ???
Excellent. To the point what is needed. If took me just a min to understand to start going. Thanks a million.
Hi,
thank you a lot for sharing this. I didn't work on vbs for years, but now this comes really handy to know :)
Cheers
it returned error : invalid character. have tried it with 2 working vbs script, but the results are the same. dont know whether its not working with the script or vs 2010
Thank you, this is very useful!!
Thanks a lot for your post :))
very useful to start learning VB script
useful..!!
Awsome. Keep up the great! work. Too the point...
Thanks a lot for your post :)
Thanks so much for that. I come from the .Net world and I was told that to debug a vb script file, I could only use messageboxes...I doubted it and I was right. This is making my life much simpler :)
great it's worked for me
thank you
Nice post, Helped me a lot.. :)
Just-In-Time debugger window was not opened when run the .vbs script as mentiond cscript /x /d Test.vbs
Note: Only a member of this blog may post a comment.