Category "batch-file"

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

How to prompt a user multiple times by a batch file with multiple user inputs?

I want to change the serial number and product number of about 250 servers (they are not correct at the moment). I know the command that I need to use, but I ne

Executing command on Plink command line fails with "not found"

Goal: connect to AntMiner via SSH, and send poweroff command. command: plink.exe -v -t -ssh antminer -l root -pw xxx poweroff Connecting to 10.0.1.11 port 22

using powershell inside batch file to add floating numbers from text file

i have a text file logging timestamps from ffprobe on video durations of some video files, which that text file looks like this: 14.068700 5.043011 84.071967 5

Create folders and files from txt batch script

I've already found most of the answers, but I still can't use the batch file to create what I need. I need to create folders according to the list in folders.tx

Change file content using batch

So I have this going and I need a little help to improve it @ECHO Off setlocal ENABLEDELAYEDEXPANSION cd /d "%~dp0" :: Significant part of string set "replace

Bat file to to run a group of text files in sequence

I am new here and I am having a bit of trouble obtaining my desired output. I have a locked down system with no Powershell etc and I need to manipulate some txt

Run octave script from powershell and wait for it to finish

I'm trying to run a very simple octave .m file from Powershell but i can't manage to make powershell wait for it to finish. In fact, it launches the script exec

Curl request to batch or windows command line [closed]

I would like to create a github repository using a command line/batch script or whatever on windows. This request works on https://reqbin.com/

npm ERR! Missing script, but the script is there when I run "npm run"?

I am trying to run a .bat file that simply echoes 'hello', to learn more about package.json and scripts. I have this: "scripts": { "buildSwaggerFiles": "buil

How does one close stdin from the windows CMD prompt?

I know that one can close stdin when executing a command from a Linux CLI using logic such as: 0<&- <command> This simulates/emulates running an a

batch-script start another batch-script as administrator [duplicate]

In school, we have Notebooks and every student has his own account, after sing out the desktop will be cleaned from files, so I have to instal

How to deactivate a conda environment before the batch file exits when closing a jupyter lab instance?

I have a batch file that I use to run my jupyter lab. file.bat call <anaconda_dir>\Scripts\activate.bat rasa_ai_conda jupyter lab conda deactivate call co

Automatically create folders based on unique key

I have various files with the same structure, they begin with a unique key and a hyphen followed by the name of the file. Examples below: 100023525_Document_1 1

Batch script to delete Computer Objects from the ARS portal

I used the below script to delete bulk users from the ARS portal [Dell Active Roles] Connect-QADService -Proxy -Credential (Get-Credential) Import-Csv "C:\IT\D

How do I echo a greater than sign in Cmd?

How do I echo the "greater than" character in cmd? I would like to escape the "greater than" sign (>) because I need it to echo to another .bat file. Echo ne

Calling a .bat file from C program fails but if double click it works

I have this file.bat : cd "C:\Program Files(x86)\Anydesk" && anydesk.exe If i double click on it it works fine and does what i want. Now i try to launc

How to run a python GUI created in pycharm using .bat [duplicate]

I wanted to ask help from this community for a solution for this: I made a python gui that I can run fine when using the terminal in pycharm.