Category "batch-file"

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.

How to install Vivado fully unattended on Window?

I'm trying to install Xilinx Vivado 2021.1 on a Windows VM (Win10 20H2) automatically / fully unattended. I have tried steps from Xilinx Installation documentat

windows bat file check command output contains string

I would like to write a windows bat file to check command output contains string. for example: adb remount

Select song sample rate

I have a folder with several mp3's and I needed to separate (copy) all the 4800 hz sample rate files to another folder. I have a folder "General Audios" and I c

Batch script : for /F does nothing after executing a command

The goal of this script is to display every WiFi devices with their keys, from the computer's saved networks. expected output : <device_name1> : <key&g

Post-commit-hook in Subversion doesn't work as I want

i came across a problem with subversion at my work. I want to create a post-commit-hook (post-commit.bat file) command that creates information about the last t

Auto-enter a value when prompted from a Python Script

Say I have access to a Python script (of which I didn't create) that prompts for a user input and then runs some processing tasks based off the input before out

Read a value out of a "complicated" JSON file [closed]

I'm using jq, but I didn't manage to get a value extracted from a .json-file (I got generated by mediainfo) in my batch-script. How can I get

How to run batch file inside Visual Studio 2022 Developer Command Prompt

I recently upgraded to VS2022 I cannot find a way to start developer command prompt and run a batch file inside it. Previously I called vsvars32.bat and it set

Batch file for removing certain information in a line

I have a gcode file .nc What I want to do with a batch file is remove all line numbering i.e. N1 *N2 N3 etc. I also want to remove the M00 at the start. Do you

Text file transfer between PC and Arduino using Batch scripts

I have a personal project based on file transfer between an Arduino Due and my PC. Theses files are in text format and can go over 10Mb. I firstly bought an SD

Trying to convert text into hex by calling a function within my batch file, but the hex code never gets returned to the Main batch function

@echo off goto :main :strg2hex setlocal EnableDelayedExpansion rem Store the string in chr.tmp file set /P "=%~1" < NUL > chr.tmp rem Create zero.tm