vbscript

VBS Script to Check Port Availability in Windows

ⅰ亾dé卋堺 提交于 2021-02-18 08:21:52
问题 I am trying to check preconditions for a certain piece of software. I have a set of scripts that goes through and checks for things such as disk space, memory availability, etc. I need to create a script that can check if certain ports are open and accessible. I am using the WMI to check other network configuration items, but cannot find any references to checking port availability. Anyone have any ideas where I can find a WMI construct to let me view and manage ports or any other ideas for

VBS Script to Check Port Availability in Windows

假装没事ソ 提交于 2021-02-18 08:21:27
问题 I am trying to check preconditions for a certain piece of software. I have a set of scripts that goes through and checks for things such as disk space, memory availability, etc. I need to create a script that can check if certain ports are open and accessible. I am using the WMI to check other network configuration items, but cannot find any references to checking port availability. Anyone have any ideas where I can find a WMI construct to let me view and manage ports or any other ideas for

Thread Sleep in Classic ASP?

送分小仙女□ 提交于 2021-02-17 19:24:36
问题 I'm doing some revision on an old app that is written in classic ASP/VbScript. It has a feature to send out an e-mail to the members of the application, but because the member list is quite large, the server rejects new e-mails after the first hundred or so are sent. I've written some code to make it send out e-mails in burst of 20, but this still doesn't work. I think that perhaps making it sleep for a second between burst might work properly. However, I can't seem to find a Thread.Sleep

Thread Sleep in Classic ASP?

大憨熊 提交于 2021-02-17 19:24:12
问题 I'm doing some revision on an old app that is written in classic ASP/VbScript. It has a feature to send out an e-mail to the members of the application, but because the member list is quite large, the server rejects new e-mails after the first hundred or so are sent. I've written some code to make it send out e-mails in burst of 20, but this still doesn't work. I think that perhaps making it sleep for a second between burst might work properly. However, I can't seem to find a Thread.Sleep

What is wrong here MyPerfFee = (cdbl(TotforMonth)/100) * cdbl(trim(perfFee))?

牧云@^-^@ 提交于 2021-02-17 05:01:16
问题 In ASP, what is wrong at here : MyPerfFee = (cdbl(TotforMonth)/100) * cdbl(trim(perfFee)) I get the error : Microsoft VBScript runtime error '800a000d Type mismatch: 'cdbl' /client_services/admin/commscalc.asp, line 48 回答1: The problem here is either TotforMonth or perfFee are not numeric values as far is VBScript is concerned. When dealing with numeric fields it for an external source (flat file, rdbms etc.) it's always best to check them before attempting computations. For example <% 'These

echo a random name from a list, vbscript

只谈情不闲聊 提交于 2021-02-16 21:00:21
问题 I'm very new with programming, and I want to make a program that randomly selects a name or sentence from a list in Vb Script. here is the list: Jacob James Jason Caleb Ashlee John The program needs to choose a random name from that list. If there is anyone who could help, I would very much appreciate it, thanks 回答1: There is no built-in method to do what you require in VBScript. You have to implement your own as below. Also, you might want to check these out: Randomize Statement Rnd Function

echo a random name from a list, vbscript

断了今生、忘了曾经 提交于 2021-02-16 20:57:51
问题 I'm very new with programming, and I want to make a program that randomly selects a name or sentence from a list in Vb Script. here is the list: Jacob James Jason Caleb Ashlee John The program needs to choose a random name from that list. If there is anyone who could help, I would very much appreciate it, thanks 回答1: There is no built-in method to do what you require in VBScript. You have to implement your own as below. Also, you might want to check these out: Randomize Statement Rnd Function

Internet explorer grab internal ip address

吃可爱长大的小学妹 提交于 2021-02-16 20:07:55
问题 I'm looking for a solution to grab people's internal ip addresses in IE (not using java or java applets). The equivalent in Java looks like that: this.sock.bind(new java.net.InetSocketAddress('0.0.0.0', 0)); this.sock.connect(new java.net.InetSocketAddress(document.domain, (!document.location.port)?80:document.location.port)); return this.sock.getLocalAddress().getHostAddress(); Is that something possible in vbscript or jscript? Could you provide me with an example? Thanks for your time. 回答1:

Internet explorer grab internal ip address

徘徊边缘 提交于 2021-02-16 20:07:33
问题 I'm looking for a solution to grab people's internal ip addresses in IE (not using java or java applets). The equivalent in Java looks like that: this.sock.bind(new java.net.InetSocketAddress('0.0.0.0', 0)); this.sock.connect(new java.net.InetSocketAddress(document.domain, (!document.location.port)?80:document.location.port)); return this.sock.getLocalAddress().getHostAddress(); Is that something possible in vbscript or jscript? Could you provide me with an example? Thanks for your time. 回答1:

Internet explorer grab internal ip address

杀马特。学长 韩版系。学妹 提交于 2021-02-16 20:06:55
问题 I'm looking for a solution to grab people's internal ip addresses in IE (not using java or java applets). The equivalent in Java looks like that: this.sock.bind(new java.net.InetSocketAddress('0.0.0.0', 0)); this.sock.connect(new java.net.InetSocketAddress(document.domain, (!document.location.port)?80:document.location.port)); return this.sock.getLocalAddress().getHostAddress(); Is that something possible in vbscript or jscript? Could you provide me with an example? Thanks for your time. 回答1: