Geeks With Blogs
ET's VS and TFS World Fascinating tidbits about VS and TFS and .NET (well I hope...)

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 Visual Studio Team System | Back to top


Comments on this post: Nice surprise when editing vbs and hta files with Visual Studio 2005

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

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005
Requesting Gravatar...
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
Left by ET on Dec 14, 2005 9:19 PM

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005
Requesting Gravatar...

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

Left by MoneyWrench on Dec 16, 2005 3:16 PM

# Crappy debug solution - any sugestions?
Requesting Gravatar...
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)

Left by Philip on Jan 13, 2006 2:53 AM

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005
Requesting Gravatar...
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
Left by ET on Jan 13, 2006 7:54 AM

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005
Requesting Gravatar...
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...
Left by Diogo Maul on Apr 19, 2006 12:15 PM

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005
Requesting Gravatar...
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.

Left by Eric D. Burdo on Dec 21, 2007 4:27 PM

# re: Nice surprise when editing vbs and hta files with Visual Studio 2005
Requesting Gravatar...
Doesnt work for debugging .hta (html applications with scripts in them). Ugh.
Left by Minok on Apr 25, 2012 8:04 PM

Your comment:
 (will show your gravatar)


Copyright © Etienne Tremblay | Powered by: GeeksWithBlogs.net