Questions tagged [batch]

A batch file is the name given to a type of script file, a text file containing a series of commands to be executed by the command interpreter under MS-DOS and Microsoft Windows.

This was the first extension used by Microsoft for batch files. This extension runs with MS-DOS and all versions of Windows, under COMMAND.COM or cmd.exe, which execute its commands, normally line-by-line.

339 questions
0
votes
1 answer

How to prevent Task Scheduler errors/fails

There seems to be lots of myths and bugs upon research not many useful items were returned or maybe outdated "Run whether logged on or not", according to many posts/results saying this function is bugged and batch files are not get kicked off…
0
votes
1 answer

batch file to install application (Adobe Reader)

I previously used ninite to install this. However, this is no longer supported through ninite anymore. I usually install this manually but I know where a way to automate this using a batch script of some kind. Here's what I have: msiexec.exe /I…
Jedd117
  • 1
  • 1
0
votes
1 answer

Authorization required to install jzos batch launcher

We are trying to install the JZOS Batch Launcher. The function consists of three pieces: a load module that must be put into a z/OS PDSE, a sample start proc that can be tailored and put into an appropriate PROCLIB, and sample JCL that can be…
0
votes
1 answer

Need script to replace TEXT in selected files

Environment Windows 10, C:\Folder_With_VMXfiles, installed sed for windows Tools: Batch script, sed for Windows Requirements: In folder C:\Folder_With_VMXfiles Need to replace some text inside the vmx files with another. But the replacing text is…
0
votes
0 answers

Systematically launch a GUI software in Windows Server

In a calculation provided by my Windows server, I have to make Microsoft Excel involve because of technology limitations: I need to systematically open Excel inside the server, read content of an Excel file to generate a txt file, and then close the…
0
votes
1 answer

Batch parameters for installing OpenSSL 1.0.1?

I have a group of prereq programs that need to be installed on multiple computers. I have automated everything with a single batch file except for OpenSSL, which still requires a user to go through the GUI installer prompts. Are there any parameters…
0
votes
0 answers

Export Windows Registry for Services

I have a process that I want to automate, I have tried doing some digging but I can't find a way to do it, as I am not a heavy scripter. Here it goes: I want to have a script of some sort, that will search the registry and export registry keys for…
0
votes
3 answers

Running Exchange Powershell script from a batch file: command doesn't work. What's wrong with my syntax?

Coming from this question here: How to create a script for Exchange Powershell to modify settings for all shared mailboxes? Here is my Powershell script (scroll right to see all): $Mailboxes = Get-Mailbox -RecipientTypeDetails SharedMailbox Foreach…
Daniel
  • 1,614
  • 9
  • 29
  • 47
0
votes
2 answers

vbs to detect usb drive and run some commands

I have two scripts. Both are within the same folder on the hard disk. The "vbs" call "bat" to detect usb to run some commands. I want to incorporate the function of selecting the usb to vbs. Thanks usb.vbs Option Explicit On Error Resume…
user290171
0
votes
1 answer

Batch: Using Number Variable at setting another Variable with concatenate function?

Hopefully someone can help me on this: I have a batchfile where I want to combine Variables and include a function with a Variable number for the concatenate - for better understanding see attached script: set vSourcenm=tester.txt Defines a…
Daniel
  • 1
  • 1
0
votes
1 answer

How can we run a logon script to mount drives UAC?

We have a small environment where we are setting up mountable drives using a login.bat file, reason why we are doing this because our script first tests whether the folder is created for that user, and then if so makes a folder, then finally it…
0
votes
1 answer

Group Policy applying only once?

For my own sanity can someone please advise why my GPO's to install application only works once? (both Machine level and User) When I say once, I let the script install to test on a virtual machine. I then subsequently uninstall the application…
Mikoyan
  • 11
0
votes
2 answers

batch usb letter execute command

I have and batch script to execute a command to delete several ext. Example: set /p drive=Choose the letter of usb: if %drive%== E goto E Example (if you choose E) E: del /f /q E:\*.lnk *.inf *.init But only delete the first one (*.lnk). The rest…
user290171
0
votes
1 answer

.Bat - Delete Various Files Folders in Different Directories

Im after some assistance if possible i currently use a works laptop which i also use for personal use. what i would like to do as is create a .BAT if this is the best method to delete various folders and files in different directories should i ever…
0
votes
1 answer

Automatically Setting Printer ACLs for Multiple Printers on Multiple Terminal Servers

Does anyone have an example of how to script (preferably as a batch file) to set ACLs on multiple printers installed on multiple servers? I searched Google and found some examples of settings ACLs on a single printer but not for multiple printers on…
user5870571
  • 3,094
  • 2
  • 12
  • 35