Category "batch-file"

In Windows cmd, how do I prompt for user input and use the result in another command?

I have a Windows .bat file which I would like to accept user input and then use the results of that input as part of the call to additional commands. For examp

trying to get administrative permission(without uac) in batch file

@echo off goto check_Permissions :check_Permissions SET "C:\Users\BDAS\Desktop\check_admin=%~dp0"&SET "check_admin=%~dpf0" net session >nul 2>nul &am

Why redirecting cmd error to file doesn't work

The thing is that redirecting errors to the file in command line doesn't work. I will explain this by giving an example. ping /wrong > output.txt 2> error

How can I link to an Excel file on a network share from a php web page?

I am trying to link a file on a php webpage which is hosted on a server within our local network using IIS. The workbook must load via the network location and

Storing Ipv4 address into a .env variable

I am trying to find a way on how to store a IPV4 address into a variable in .ENV file in my ReactJS project, but my problems are: 1.) How can I get the IPV4 add

Storing Ipv4 address into a .env variable

I am trying to find a way on how to store a IPV4 address into a variable in .ENV file in my ReactJS project, but my problems are: 1.) How can I get the IPV4 add

Run VS code projects through batch file

I have so many projects I have to open during windows startup. So I have created batch file to open them in vs code as following. start cmd /C code C:\project1

Batch script Mix Forfiles Cmd to print a PDF

I'm stuck with this script echo off SET pathAdobe="C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" SET pathDestination=T:\ cd %pathDestination% (1) for

Creating a batch script which takes inputs from the user and creates folder structures

Cobra kai_______Season 01_______S01E01 | |______S01E02 |____Season 02 |______S01E03 | |______S01E04

Script check app version to trigger action

I want to use GPO deploy log on script for User Configuration to check the McAfee app version, If not installed, go to install If already installed, go to skip

windows batch keep returning a sytax error: cant find the hitch

just want my batch to rotate screen, open a program, and rotate back when closed: REM starts by rotating the screen using a program called display64 START C:\

Batch list folder contents, then echo results as options to be set as variables

I usually like to try to work these out myself, but at the moment I have to admit I don't know where to start with this one. Hoping someone could kindly steer m

Trying to back up my Bitlocker Key to ADDS Through Script

I'm trying to automatize the process of storing BitLocker Keys to ADDS. I wanna be able to run the following script at logon, in order to do that, as the OS is

How to execute Powershell's "start-process -Verb RunAs" from inside a Batch where the elevated command inherits the Batch's environment?

1. Problem I have a complicated batch file where some parts need to run with elevated/admin rights (e.g. interacting with Windows services) and I found a Powers

Using batch for processing Text file

I am new to batch scripting and would like to process my input file with the content : MD5 hash of sample.js, 81f87dd81ef88f59a57d95d9ede5f92e MD5 hash of sear

How to move file from another directory to created folder that make by name file?

I already make script file for make new folder base on file name and move 1 file to this folder. The code as below. @ECHO OFF setlocal EnableExtensions Disable

Sending email with attachment using Cygwin email package

I installed cygwin together with this package: https://cygwin.com/packages/x86_64/email/email-3.2.1-git-1 Do you know how to create a bat file and send email wi

Find multiple string matches from the original string batch script

I currently have a list of files in a folder that i need to iterate through and exclude the non production files that matches the pattern. how do i search for m

bat file in Windows scheduler not running python script

I am trying run a python script to update a ppt presentation. I have also tried this a year ago with running a regression and updating a table in SQL and didn't

Setting name of current file being read as variable

Using a for loop in a batch file, from a folder full of xml files, I am trying to parse an xml tag but also the file name of the current file being read. I have