I am trying to launch an ASP Web Application on a standalone machine into a Web Browser as 'localhost' from the Context Menu in Windows Explorer using IIS Express. I have a registry edit that does everything but open the application in the browser.
QUESTION ONE: What do I need to add to the code below to open and display the required ASP Application (attached) in a web browser using this method.
Windows Registry Editor Version 5.00
@="Edit Database in Browser"
@="cmd /c start /D\"C:\\Program Files (x86)\\IIS Express\\\" iisexpress.exe /port:1029 /clr:v2.0 /path:\"d:\jcsv\default.asp""
IISExpress has command line options to load pages using the 'path' switch. Even if the server is running it still will not display this site. A successful load uses the commands displayed in the attached CMD image.
I have also explored the use of a separate bat file to try and launch everything from the desktop as an alternate to the context menu option. This may be a better solution to run the extra commands required.
The SECOND QUESTION is How do I launch these separate processes shown in the attached image from either solution?. It is OK if the registry context menu calls the batch file to run the required commands.?
set /A port = 1029
rem start the server and the browser
rem start "IIS Express" "%ProgramFiles(x86)%\IIS Express\iisexpress.exe" /path:\"d:\jcsv\default.asp
start "IIS Express" "http://localhost:1029/tblDatalist.asp"
I have also attached the sample ASP website and database in a file called jcsv.zip.txt Just remove the .TXT to use it as a zip. The sample registry and IISExpress config files in the application subfolders are are default or unaltered. The code above is the working code.
The SUCCESSFUL answer will enable me to display the attached website from the context menu or from a shortcut that executes the bat file to display the attached site in a browser.