Questions tagged [windows-scripting]

Windows Scripting refers to any of the various scripting technologies that ship with Microsoft Windows products.

Windows Scripting refers to any of the various scripting technologies that ship with Microsoft Windows products.

With early roots in browser scripting, these technologies such as , Windows Script Host (), HTML Applications (), and are employed as system administration tools providing methods of automation.

As the name implies, Windows Scripting technologies utilize scripts written in plain-text interpreted code. Windows Scripting can become quite powerful when used to implement other technologies such as (OLE) Automation, Active Directory Services Interfaces (), and Windows Management Instrumentation ().

398 questions
-1
votes
1 answer

Error while giving Powershell access to Target System from Source machine

I am basically a C# guy but my requirement is to give Powershell access to the remote/target systems (Say Client) from my system (Say Server). I am part of the administrator group in those remote/target machines. Also, all the systems including mine…
Vidyadhar
  • 1
  • 1
-1
votes
2 answers

Display all .txt files inside named top level sub-directories of a base directory

I have a base folder, C:\Users\user\Desktop\BatchTesting\FTP, which has multiple folders inside. I need to access lets say, 5 folders inside the FTP folder and echo the names of the files inside them. I have written the following code snippet but…
sinhar303
  • 11
  • 6
-1
votes
1 answer

How to modify single digit hour to two digit hour in a specific date/time field value in a CSV file?

I have a text file (.txt) that contains multiple rows of text in the following format: ABCD|TEST|123456|12/10/2017 5:41|Sample|CODENOTE123|Comment text|11/27/2017|12383697 As it can be seen, there are 9 columns separated by the pipe | operator. I…
sinhar303
  • 11
  • 6
-1
votes
1 answer

Trigger an email alert in PowerShell when ExpiryInDays data returned by PSCustomObject is less than or equal to 30

I have a script here that will return the information I need from the certificates binded in IIS from different web servers. $Date = Get-Date $servers = Get-Content C:\servers.txt $cert = Foreach ($server in $servers) { Invoke-Command…
Didge
  • 13
  • 5
-1
votes
1 answer

Windows script to check directory for file

Trying to do a bit of scripting to run on a windows server. The aim of the code is to check a given directory F:\TestFolder for the arrival of 1 or more files that start with IB30321* in the name. If the file(s) have not arrived in the given…
AsadQ
  • 1
-1
votes
2 answers

How FileSystemObject count property handles the list of files return by the dir command

Function Run_Cmd(strCmd) Dim objShell Dim objScriptExec Dim strCmdResult strCmd = "%comspec% /C " + strCmd Set objShell = CreateObject("WScript.Shell") Set objScriptExec = objShell.exec(strCmd) set Run_Cmd =…
-1
votes
2 answers

I need help parsing strings in windows batch file

I am trying to figure out how to extract just the name [Ethernet 1] of the LAN network associated with the Intel(R)Ethernet Connection (3) I218-V Network using windows batch script. Any help will be greatly appreciated. Name : Ethernet…
-1
votes
1 answer

Create a script in Windows 7 that controls volume

I'm relatively new to programming and I want to make a script that controls the volume of my pc, linkt to hotkeys. What I want it to do specifically is whenever I press a key on my keyboard (i.e. ctrl + Alt + arrow up), it turns the volume to 75%…
-1
votes
1 answer

get the files in folder between two timestamp

I have a folder 'script'. People check-in the files to this folder. Every time they check-in, I need to get the those files alone and execute them. For that, current timestamp needs to be saved in some log file. so that we can get the files that are…
Ela
  • 257
  • 1
  • 4
  • 16
-1
votes
1 answer

Translating short AppleScript into Windows VBScript

Knowing only name of "unique job number" subfolder, I'm trying to write VBScript which quickly returns name of "client name" folder which contains my "unique job number" subfolder This is my folder structure: Client 1 -unique job number -unique job…
Andrewski
  • 281
  • 1
  • 2
  • 9
-1
votes
1 answer

windows scripting to search a value in '.HL7' file

Through windows batch file, I am trying to - a. open a folder > open latest '.hl7. file (by date) in the folder. b. search a specific value in the file. e.g value of the key 'name' c. echo the value. I am new to scripting, Can anybody help me write…
AmitGupta
  • 23
  • 5
-1
votes
1 answer

What is the difference between the "WSH" and "WScript" objects?

What is the difference between the WSH and WScript objects? this.wsf: