What is the size limit of the application object in classic asp?
I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know? ...
I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know? ...
Example G76 I0.4779 J270 K7 C90 X20 Y30 If a number begins with I J K C X Y and it doesn't have a decimal then add decimal. Above example should look like: G76 I0.4779 J270 K7. C90. X20. Y30. Purpose of this code is to convert CNC code for an older Fanuc OPC controller ...
I have a Windows shell script that opens an application. I'd like to modify it to make it open a file automatically upon opening the application. I know it uses VBscript but I'm not familiar with the language; all the tutorials I found just talked about using VBS for web pages, not for Windows scripts. I know the syntax is different bec...
Hey there! I am having the problem that I cannot select a specific XML node which needs to be deleted. I have already tried to select the node by using the XPath which works fine for some XML files but I cannot figure out the correct XPath for a node in a more complex file. Does anybody know a freeware tool which can load a XML file so...
I have to write something in vbscript that need to use a unique set. I am looking for something akin to Java's HashSet, is this already in vbscript or do I have to write my own? ...
I need any tool or IDE environment to debug and test the vb scripts code. Please suggest me for any free one. My vb scripts are standalone (vbs extenstion). Thanks ...
If I have two variables containing binary values, how do I append them together as one binary value? For example, if I used WMI to read the registry of two REG_BINARY value, I then want to be able to concatenate the values. VBScript complains of a type mismatch when you try to join with the '&' operator. ...
I Have an old vbs script file being kicked off by an AutoSys job. Can I, and how do I, return an int return value to indicate success or failure? ...
I'm trying to find a way to force Windows to reboot, and I am running into issues. I've tried Set OpSysSet = GetObject("winmgmts:{authenticationlevel=Pkt," _ & "(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where "_ & "Primary=true") for each OpSys in OpSysSet retVal = OpSys.Reboot() next I've also tried...
What I'm trying to do is encode a gif file, to include in an XML document. This is what I have now, but it doesn't seem to work. Function gifToBase64(strGifFilename) On Error Resume Next Dim strBase64 Set inputStream = WScript.CreateObject("ADODB.Stream") inputStream.LoadFromFile strGifFilename strBase64 = inputStream.Text Set inp...
I need to programmatically get a list of running applications as shown in the "Applications" tab inside the Windows Task Manager using PowerShell or VBScript. All I could find so far is how to list processes using VBScript and WMI. ...
I need to extract only the 2nd level part of the domain from request.servervariables("HTTP_HOST") what is the best way to do this? ...
I need to call a VBScript file (.vbs file extension) in my C# Windows application. How can I do this? There is an add-in to access a VBScript file in Visual Studio. But I need to access the script in code behind. How to do this? ...
How would I make a compelling argument for introducing Python into a windows environment? VBscript or Batch scripts will run on any machine and handle most administrative tasks and Java and .Net are available to handle more complex problems. I understand Python brings a lot to the table, but what specifically could it do that we can't do...
I am having an VBScript files which runs by many instance of jobs. I need to log the error information if any error occurs in the script processing. If i maintain a log file then how can i differentiate the log file for each instances (around 10 simultaneous instances) of vb script calling. I dont go for any db logging. Please suggest ...
Is there a way to perform an HTTP GET request within a Visual Basic script? I need to get the contents of the response from a particular URL for processing. Thanks. ...
I am having an VB Script. I need to log the error information in a file. I need to log every information like error number error description and in which sub routine does the error occured. Please provide some code ...
I am using an ASP page where I have to read a CSV file and insert it into DB table "Employee". I am creating an object of TestReader. How can I write a loop to execute up to the number of rows/records of the CSV file which is being read? ...
I'm trying to assign application pool to one web site in IIS7 using vb script: ' Connect to the WMI WebAdministration namespace.' Set oWebAdmin = GetObject("winmgmts:root\WebAdministration") ' Retrieve the application and display its Web site name and path.' Set oApp = oWebAdmin.Get("Application.SiteName='Default Web Site',Path='/site'...
Hi, I'm trying to run this script to assign Application Pool to web site running under IIS 6 Set oWebAdmin = GetObject("winmgmts:root\WebAdministration") Set oSite = oWebAdmin.Get("Site.Name='Site'") oSite.ApplicationDefaults.ApplicationPool = "NewAppPool" oSite.Put_ This script can't run under IIS 6... Is there is something wrong? ...