asp-classic

Web scraping in classic asp [closed]

怎甘沉沦 提交于 2020-07-24 05:28:04
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question I'm trying to scrape a web page using classic asp. Why, because I have an asp file that I am trying to include in 2 domains and I'd rather not have 2 copies to update. I'm new to the whole web scraping thing and having difficulty finding a "Dummies" tutorial on

Classic ASP - Running .exe from a Web Page on Localhost

半腔热情 提交于 2020-07-23 05:20:33
问题 I am trying to execute a .bat to launch notepad.exe on my localhost(server-side) with the following code: index.asp <% set wshell = CreateObject("WScript.Shell") return = wshell.run("c:\file.bat", 4, false) response.write(return) set wshell = nothing %> file.bat notepad.exe When I open the ASP page, nothing happens. A value 0 is returned because of the variable "return". So I tried set the false value to be true , and then the server froze and didn't return anything; I think that happened

Classic ASP - Running .exe from a Web Page on Localhost

纵然是瞬间 提交于 2020-07-23 05:19:25
问题 I am trying to execute a .bat to launch notepad.exe on my localhost(server-side) with the following code: index.asp <% set wshell = CreateObject("WScript.Shell") return = wshell.run("c:\file.bat", 4, false) response.write(return) set wshell = nothing %> file.bat notepad.exe When I open the ASP page, nothing happens. A value 0 is returned because of the variable "return". So I tried set the false value to be true , and then the server froze and didn't return anything; I think that happened

Classic ASP - Running .exe from a Web Page on Localhost

老子叫甜甜 提交于 2020-07-23 05:18:09
问题 I am trying to execute a .bat to launch notepad.exe on my localhost(server-side) with the following code: index.asp <% set wshell = CreateObject("WScript.Shell") return = wshell.run("c:\file.bat", 4, false) response.write(return) set wshell = nothing %> file.bat notepad.exe When I open the ASP page, nothing happens. A value 0 is returned because of the variable "return". So I tried set the false value to be true , and then the server froze and didn't return anything; I think that happened

VBscript regex replace

孤街醉人 提交于 2020-07-18 21:31:37
问题 I have no idea why this is only applying to the last instance found, not all of them as I would expect. Any help appreciated. Input string: <a href="http://www.scirra.com" target="_blank" rel="nofollow">http://www.scirra.com</a><br /><br /> <a href="http://www.scirra.com" target="_blank" rel="nofollow">http://www.scirra.com</a><br /><hr> Regex: 'SEO scirra links Dim regEx Set regEx = New RegExp ' BB code urls With regEx .Pattern = "<a href=\""http://www.scirra.com([^\]]+)\"" target=\""_blank\

Detailed error message with web.config

瘦欲@ 提交于 2020-07-18 21:08:05
问题 On hosting my website on goddady plesk server and when there an error with one of my pages it seems not to display in detail though i have a web.config file in my root folder. I don't know if maybe there's a problem with my web.config. the only tell it tells me is "There is a problem with the resource you are trying to access" <configuration> <system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> </system.webServer> <system.web> <customErrors mode="Off"/

Canonical Redirect with classic ASP shows site folder

匆匆过客 提交于 2020-07-09 17:03:20
问题 If pointed to http://domain.com it redirects to http://www.domain.com/thesite/index.asp which is the actual location. No matter the page, it always appends the actual folder path. ive been using this script for canonical redirection, included in every page. If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 Then Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www." &_ Request.ServerVariables("HTTP_HOST")&_ Request.ServerVariables("SCRIPT_NAME") End if I

Classic ASP adding records to MySQL

半腔热情 提交于 2020-07-08 00:35:20
问题 I have had to move on of my old classic ASP projects to a new host, and I'm having problems connecting to their MySQL server. I have attached below the script I used with the old host which now errors Data source name not found and no default driver specified After a bit of digging it seems I have to change the driver to {MySQL ODBC 5.3 Unicode Driver} but it still errors. It seems to point to the cursor/lock type but I have used all option with no success. ODBC driver does not support the

Classic ASP adding records to MySQL

只谈情不闲聊 提交于 2020-07-08 00:34:46
问题 I have had to move on of my old classic ASP projects to a new host, and I'm having problems connecting to their MySQL server. I have attached below the script I used with the old host which now errors Data source name not found and no default driver specified After a bit of digging it seems I have to change the driver to {MySQL ODBC 5.3 Unicode Driver} but it still errors. It seems to point to the cursor/lock type but I have used all option with no success. ODBC driver does not support the

Classic ASP/VBScript implementation of Crockford's Base32 Encoding

a 夏天 提交于 2020-07-06 05:31:30
问题 Moving on from the first part of my problem, I'm now working on trying to write a Classic ASP/VBScript implementation of Douglas Crockford's Base32 Encoding. Time is tight on this particular project, so while I am working this out on my own, I'm hoping someone has something readily at hand (or can at least whip one up faster than I can). 回答1: First run... does this look about right? 'Base32 encoding functions for shorter, less confusing verification numbers' Const kBase32Digits =