adsutil.vbs

[in .vbs][3in1] Create multiple folder 180 => Create subfolders in All 180 => Move file and rename file in Subfolders created [3in1] “x, y, z”

纵然是瞬间 提交于 2019-12-11 01:26:32
问题 "x, y, z" (vertical, horizontal, Move and rename files.) i want to combine 3in1 (x,y,z.).vbs in .vbs [summary] Read it first here "x" Trying to create multiple folders with VBScript Option Explicit Dim objFSO, objFolder, strDirectory, i strDirectory = "C:\New folder (2)\" Set objFSO = CreateObject("Scripting.FileSystemObject") i = 0 While i < 180 Set objFolder = objFSO.CreateFolder(strDirectory & i) i = i+1 WScript.Quit Wend "y" Help To create Folder1/Folder2 in Windows using VBScript ( Both

How to get a variable from cmd and show it in vbscript - Vbscript

孤街醉人 提交于 2019-12-08 09:06:33
问题 i'm a beginner of vbscript , i need you help , my question is how do i do to get a variable from cmd and show it in vbscript for example get a ping from www.google.com and show it in a msgbox in vbscript help me code : dim cmd,x set cmd = createobject("wscript.shell") x= cmd.run("cmd /k ping www.google.com ",1,true) Get that output and show it in a msgbox later , help me 回答1: Here an example of how to do that. The response of the ping that is checked is in Dutch but that doesn't matter for

How can I set global mime-types for IIS6 programmatically?

醉酒当歌 提交于 2019-12-07 10:39:06
问题 Currently I am able to to set a mime type with adsutil.vbs for the primary web site on IIS6 with the following syntax: cscript adsutil.vbs set W3SVC/1/Root/MimeMap ".manifest, text/cache-manifest" This seems to work fine when I only need to target W3SVC/1. I need to write an update script that will make sure that any sites on a given IIS6 installation have the proper mime type configured. I could either add the mime type to each individial site or at the global level. I need to do this

How can I set global mime-types for IIS6 programmatically?

一个人想着一个人 提交于 2019-12-05 16:29:47
Currently I am able to to set a mime type with adsutil.vbs for the primary web site on IIS6 with the following syntax: cscript adsutil.vbs set W3SVC/1/Root/MimeMap ".manifest, text/cache-manifest" This seems to work fine when I only need to target W3SVC/1. I need to write an update script that will make sure that any sites on a given IIS6 installation have the proper mime type configured. I could either add the mime type to each individial site or at the global level. I need to do this programmatically and would like to use adsutil.vbs if at all possible. I think the easier way will be to just

DOS command to list all virtual directories in IIS 6

孤街醉人 提交于 2019-11-28 14:17:43
I'm looking for a DOS command to list all sites and virtual directories in IIS 6 under Windows 2003. I know there are ways to do this using Powershell / WMI , VBS , C# , etc. But all I want is a quick and dirty, no-fuss way to do it from DOS, without the need to create any new files on the Webserver. EDIT: While researching for this question I managed to come up with a one-liner that does it, but please do suggest an alternative if you have a more elegant solution that fits the criteria above. rkagerer Here's what I came up with: @FOR /F "delims=[]" %A IN ('@cscript //nologo %SystemDrive%

DOS command to list all virtual directories in IIS 6

∥☆過路亽.° 提交于 2019-11-27 08:32:42
问题 I'm looking for a DOS command to list all sites and virtual directories in IIS 6 under Windows 2003. I know there are ways to do this using Powershell / WMI, VBS, C#, etc. But all I want is a quick and dirty, no-fuss way to do it from DOS, without the need to create any new files on the Webserver. EDIT: While researching for this question I managed to come up with a one-liner that does it, but please do suggest an alternative if you have a more elegant solution that fits the criteria above.