How can I use watin with a .HTA HTML Application? - watin

I've created a .HTA HTML application and I need to be able to create test scripts for it using watin (or anything else if you can suggest something that will work and fit in well with Visual Studio Test projects).
After alot of mucking around, I'm starting to think that watin won't support .HTA files.
Can anyone help out here ?

The anatomy of a HTA is virtually identical to HTML. It is recommended to split your CSS, VBS, JS into separate files instead of embedded it in the HTA. This will allow you to do standalone testing of your VBS, JS files in the Windows Script Host, or in unit testing HTA applications.

Related

Luanching an exe/bat file when opening a Visual Studio Solution

I've written up a script to do some background loading of a very large multi-project solution folder.
And I've created external tools to launch these scripts manually.
But I need to find a way to automatically launch said scripts with arguments on the launch of this solution. Before everything else loads.
I've tried looking at dozens of answers but they mostly explain just how to set up an external tool and hook it to a keybind, but I need automation.
You can use my Open a file from the solution directory on opening a solution extension for Visual Commander and replace opening a file with launching it.

How use native Windows Explorer instead of built in Intellij file browser

The built in file browser is not easy to used especially in situation where a directory has a lot of subdirectories
Dropping and dragging is unnatural and not productive for me. Why do we need to use 2 tools for 1 job anyway? Isn't Windows Explorer alon already more than capable for that job?
Add ide.win.file.chooser.native=true in Help | Edit Custom Properties and restart the IDE.
Note that you may have various issues with the native file chooser dialog and we don't recommend using it.

How to zip a file in windows shell without vb script and with Window default zip only

Is their a way to zip a file without VB Script.I got a lot of examples on web to zip file or folder using vbs but i want to do it in a single BAT file.
Yes and no. There is no built in way to do this inside windows. You can use a external application like vbscript, a exe file like 7zip, rar, lots of resources can do this. Since windows is application poor when it comes to command lines is not really surprising. But no you do not need the VB Script for anything.
Just not so easy out of the box. Maybe makecab could do it for you? As a general rule you have a hard constraint in your question. A single BAT file which in general can not do almost anything without the support of hundreds of preinstalled or commonly installed other applications.
Could you specify a the constraints a bit better. Tel WHY you need this particular constraint? And what does it mean as even most of the bat command you use require more than one file.

Sharing a cshtml file with UI designer team who doesn't have .NET IDE

We are working on an ASP.NET MVC 3 project and taking advantage of Razor syntax to resolve paths and what not.
We are also employing a UI design team who is responsible for maintaining the design of our pages through the use of CSS and modifying the HTML in the cshtml pages.
The problem is, they work exclusively on Mac laptops without access to a web server or a .NET IDE.
Initially, they were just providing us a straight .html file along with a .css file and we were manually merging in their work into our ASP.NET solution (e.g., replacing paths with Razor markup, etc), but as the project grows and we become more involved, we are looking for a solution that will save us from these manual merges.
I was thinking I could create some kind include script that would rewrite the paths depending on whether the UI designers were editing the file, or the .NET devs, but this seems archaic.
Anyone out there been in this situation before?
Razor is a templating language, and a pretty small one at that. Could your UI team familiarize themselves with enough of it to deal with their own links? I'm sure they are familar with your view hierarchy since they are going to be building it, so it shouldn't be much of a leap to explain how controller and action paths work.
Razor files can be edited outside of a .NET IDE just fine...any old text editor will work since it's not like there's anything you have to compile. You could provide them with an instance that they could copy their files to via a shared drive (cifs) to test them on. I don't see any reason for your UI team to be required to use Visual Studio.
You could just rename your .cshtml file to .aspx and reload it in VS and design away. when you are done, rename it to .cshtml

.NET Solution Viewer

Does anyone know of a program which works like a Adobe PDF Reader except for .NET solutions?
I develop in a virtual machine but there are times when I just want to open a solution and browse the files. I have no intention of doing any development, I just want to view them.
Does this app exist, or is Notepad++ my best option?
Thanks!
You might want to consider making a simple XSL Transform that can read the SLN and create pretty little list of files for you.. if that's what you mean, otherwise the XML is probably the best you are going to get.
Never heard of a "solution reader." When viewing source files on a system without VS.NET I use Notepad.

Resources