Skip to main content

Questions tagged [batch-file]

A batch file is a text file containing a series of commands that are executed by the command interpreter on MS-DOS, IBM OS/2, or Microsoft Windows systems.

0 votes
1 answer
17 views

How can a directory be tested for existance whe the folder contains foreign characters

I would like to know if it is possible to test the presence of a directory, when the folder contains foreign characters. I've been struggling with this and have not found a solution or came to a ...
Drakul's user avatar
  • 129
0 votes
0 answers
19 views

Running a python file in batch mode with module zeep

I need to run a python file in .bat mode. This file contains the zeep module and basically at the beginning of the file I import the zeep module and launch the file in run command of visual studio ...
Ig_Ferr's user avatar
  • 81
-1 votes
0 answers
41 views

Command Prompt window closes from Windows batch script

I'm trying to make a Windows batch script, but the problem is that when the Google terminal loads, the Command Prompt window closes. Here's the code: @echo off setlocal enabledelayedexpansion ...
Jmr423's user avatar
  • 1
0 votes
0 answers
40 views

Can anyone help me understand where I'm going wrong in this command? [closed]

I'm trying to make a batch script that does a ping sweep. It asks what subnet, where to start then where to end then it is supposed to start going. Unfortunately it keeps stopping at the actual ping ...
Joey Remagen's user avatar
-1 votes
1 answer
50 views

Get the list of nested folders in directory and filter by name in batch script

I am trying to write a batch function where i need exclude some folders while searching in directory Main Folder --ProjA Folder --A Folder --A.csproj --Aa Folder -Aa.csproj ...
AMDI's user avatar
  • 963
0 votes
0 answers
26 views

how to run batch file on Mac [migrated]

I've been attempting to install a mod for Elden Ring on Mac, and it uses a batch file to install and launch. I can't seem to get it to run with wine, receiving these errors: 0074:err:ntoskrnl:...
matthew kuni's user avatar
0 votes
1 answer
40 views

How to use batch script to launch an Ubuntu terminal with commands for WSL Windows (cd & nvim)

I'm trying to use a batch script to run code files in Neovim inside the Ubuntu terminal, whenever I open a code file using the batch script as the app for Windows. I can successfully run set "...
Ian Teves's user avatar
-1 votes
0 answers
26 views

Starting GUI application from Windows Service [closed]

I want to open an application and start the printing process from Windows Service. How to do this in java? I tried using Scheduled tasks. But sometimes the tasks are not getting deleted after task ...
asum's user avatar
  • 1
-1 votes
0 answers
29 views

Execute .jar from batch file, but not grouping icon in taskbar [closed]

Using an earlier java JRE version, if I started the jar file from a batch file, it automatically grouped the icons together on the taskbar. However, after updating the JRE, this function no longer ...
fornoun's user avatar
0 votes
1 answer
32 views

How to run a command using command line arguments for Windows Terminal using wt command?

I'm trying to setup my environment. The below code is working, I just need to execute "Code ." in the new tab opened. Tried doing -Command 'code .' , -c 'code .' , but no luck. Here's my ...
sohdata's user avatar
  • 349
0 votes
1 answer
61 views

Writing filenames into a string using a loop

For a project, i must have a batch script responsible for FTP file uploading. For easier debuging / letting us know when a problem happens, if ftp upload is unsuccesful, i'd like to send a mail ...
samuka's user avatar
  • 3
0 votes
1 answer
37 views

How to delegate variable evaluation to the child CMD process in Windows command-line? [duplicate]

I am trying to delegate variable evaluation to the child CMD process in Windows command-line. Consider the following: set foo=bar cmd /c "set foo=rod & echo %foo%" It prints bar and not ...
Adel M.'s user avatar
  • 388
0 votes
0 answers
70 views

Why am I getting this error in Task Scheduler?

Goal of the program: Run (.bat) file that disconnects Tailscale when the computer is idle for over 1 minute. Here's what I already have set up: A (.bat) file that disconnects tailscale. @echo off &...
Vividlee's user avatar
0 votes
3 answers
53 views

In batch (`.bat`), how do I set a variable to print multiple newlines?

From this other SO post, learned that SET n=^&echo( echo First line%n%%n%Second line prints First line Second line How do I define nn to print 2 new lines? The following didn't work SET n=^&...
joseville's user avatar
  • 841
-2 votes
0 answers
35 views

How do I run an mp3 file from a batch file? [closed]

I need to run an mp3 file from a batch file. The mp3 is in the same folder as the batch file. I have tried inserting the file location and also trying to see if theres a run file. Does anyone know ...
ProCoder2040's user avatar

15 30 50 per page
1
2 3 4 5
3464