Etienne's VSTS World

Fascinating tidbits about VSTS and .NET (well I hope...)

  Home  |   Contact  |   Syndication    |   Login
  148 Posts | 0 Stories | 83 Comments | 122 Trackbacks

News



View Étienne Tremblay's profile on LinkedIn

Tag Cloud


Archives

Post Categories

Image Galleries

My Friends

My Links

I have been working on a scripted install of Team System for a few weeks now on and off, I was using Notepad++ to edit vbs files and my hta controller app.  With the release of Visual Studio 2005 I installed it on my host laptop (It's the first time I install it on my host machine I have been using VMs for the last 2 years).  Well I know a lot about VS and have developed with it for a while now.  So what was not my surprise when I opened vbs file with VS2K5 and it colored all my vbscript code and even gave me some intellisence.  I was all happy about that and decided to open the hta controller with VS as well.  Well that also worked very well but a bonus was that the design view (since an hta is an html application) showed me all the layout of my app and kept my html exactly like I modified it (thanks to VS2K5 not messing with custom HTML).  Very cool, I wasn't this...

Great work VS Team!

I'm very happy VS and SQL 2005 have finally shipped and we'll be able to use those fine product to develop our fine application.

Cheers,

ET

"It's all good"

posted on Saturday, October 29, 2005 9:05 AM

Feedback

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005 12/14/2005 2:47 PM MonkeyWrench
Just got VS2K5. I like the color coding but can you execute the vbscript directly from the editor?

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005 12/14/2005 9:19 PM ET
Hey MonkeyWrench,

You can run this command in a command window:
cscript //x scriptname.vbs this will prompt you which debugger you would like to use to debug the script, just pick studio and you will be placed right at the top of your script. You can then F10 through the script.

Have fun!

ET

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005 12/16/2005 3:16 PM MoneyWrench

Hey thanks ET. Worked like a charm. Works with "wscript //x scriptname.vbs" also....



# Crappy debug solution - any sugestions? 1/13/2006 2:53 AM Philip
the //x solution works.. BUT you cannot debug the same thread more than once.

When the thread ends you have to rerun the debugger from the command line and all your breakpoints/watches and other stuff are lost..

Any solution how to debug a vbs several times? (keeping breakpoints and watches)



# re: Nice surprise when editing vbs and hta files with Visual Studio 2005 1/13/2006 7:54 AM ET
Well Philip, what you need to do is "open" the vbs in vs2005 first then run the script from the command window. when the debugger window shows up choose the one that is started instead of a new one. You should be ready to go.

Cheers,

ET

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005 4/19/2006 12:15 PM Diogo Maul
I make a script and i want to transform it on a Widnows Service with VBS... but I dont know why. Can someone help me? Tips are welcome...

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005 12/21/2007 4:27 PM Eric D. Burdo
You can also setup an external tool.

Use: c:\windows\system32\cscript.exe for the Command.
Then use: //x $(ItemPath) for the arguments.

Now you can just hit the menu item to launch your VBScript.

Then, choose the same instance of VS 2005 that you are running.



Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 3 and 6 and type the answer here: