Relative Content

Tag Archive for batch-file

Create Diamond Batch Script

I’m trying to create a diamond shape in a batch script, but I’m only able to generate the right half. The left part does not display as expected. Here’s the code I’m using:

Batch file to locate local Domain Controller

I have tried to amend a previous batch file to select a local DC before running a specific task only relevant to that one as a number of DC’s on the Domain.
I dont get an output and wondering if someone can point me in the right direction please.

Batch file to locate local Domain Controller

I have tried to amend a previous batch file to select a local DC before running a specific task only relevant to that one as a number of DC’s on the Domain.
I dont get an output and wondering if someone can point me in the right direction please.

Batch Script : GOTO was unexpected at this time

I’m trying to automate Sysmon and Elastic Agent installation by executing a batch script with GPO but having some difficulties running it especially on Windows servers (another version of the script is tested and working on workstations, don’t ask me why >_>)

Batch Script : GOTO was unexpected at this time

I’m trying to automate Sysmon and Elastic Agent installation by executing a batch script with GPO but having some difficulties running it especially on Windows servers (another version of the script is tested and working on workstations, don’t ask me why >_>)

How do I deobfuscate this .bat file?

I downloaded this file which contains code to make optimizations to your Windows system for gaming, and I would like to see what it actual does. When I opened it, I found myself staring at chinese symbols (which I could clearly see that the code was deobfuscated). Can anyone please help me deobfuscate this? Thank you.

Windows Batch Job: Combined text files without NBSP

When combining two text files in a Windows batch job, an unwanted nonbreaking space appears in the output between files. This batch job combines a custom header as text with the output of a SQL stored procedure. In the individual output files, the NBSP does not appear, but when I combine these files, the NBSP is present. Looking for advice on how to build the output file with out the NBSP.

Concatenation of variables failing with Batch File

I’m running a batch file in a folder containing .xls spreadsheets that I want to convert to .xlsx using a batch file. The issue is that it obtains the file names in the folder and then loops through them and then needs to output them with the same file path but ending .xlsx instead of .xls, but I can’t get them to concatenate for some reason, %c% is blank.

Need to automate a windows batch file to answer “directory”

I have never written a batch file in windows but couldnt find a solution to backing up a Documents folder weekly so my first attempt (dont laugh) at copying the above folder to a new folder and directory and create a folder and add today’s system date – basically its a back up. It works great but asks me if this is a directory or a file – i need it to automatically answering directory (d). Here is my horrible little batch file – really would appreciate some guidance thanks – please dont laugh LOL.