Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
240 views

Windows cmd bat call command with /?

I understand that => call /? will show the help message for the call command. But => call SubBatch params /? Also shows the help message, either at the command prompt or within a bat file. This ...
RMurp's user avatar
  • 55
0 votes
1 answer
55 views

Batch function errror when i feed it a varible with current value including parenthesis

I'm trying to write a .bat file that changes the location and name of some files I need to work with,(I will move them to the same folder the batch file is in) for the first one it works fine, but ...
Andres's user avatar
  • 3
1 vote
2 answers
60 views

Problem escaping '>' characters when using 'Call'

This code should output >>> without a linefeed, but it just doesn't work. @if not "%~1"=="" ( @goto :%~1 @goto :eof ) @echo off setlocal enabledelayedexpansion ...
Yurix's user avatar
  • 15
-1 votes
1 answer
110 views

Calling variables do not work, what to do?

Hey StackOverflow Community, I am currently programming my own life simulator called "XinsLife". Currently I want to call a variable that I set before. But it just doesn't work. I tried ...
mqnycrptnn's user avatar
0 votes
1 answer
360 views

How to run 2 commands from 1 line

I have 2 lines of code. I need the 1st line to run and while it is still running start the 2nd. The first line runs a powershell script that keeps the pc active. The second goes to the main script. No ...
BatchKing70's user avatar
0 votes
1 answer
188 views

Question About Batch Variables and the Call Method

I am trying to figure out how to use call appropriately to pass variables backwards (to the original batch file that calls other batch files). The way I have my batch files currently setup is my main ...
tjordan's user avatar
3 votes
2 answers
126 views

How do I call anotherfile.bat :label correctly in Batch? [duplicate]

I have a Batch file that's a library of functions like :findmsbuild if exist msbuildpath.txt ( for /f %%i in (msbuildpath.txt) do set MSBUILD="%%i\MSBuild.exe" ) else ( set VSWHERE=&...
Ansis Māliņš's user avatar
0 votes
1 answer
1k views

Call command in a batch script

I have a script that adds exceptions to the Java_Exception and it works. The issue is after the script runs, I need it to call another script to run and no matter where I put the command in, It doesnt ...
doheth's user avatar
  • 87
1 vote
4 answers
1k views

How can I call a function that is defined in another batch file, in my current batch?

I know that I can call another batch file using call path_to_other_batch_file.bat. However, I don't know how can I call functions inside that file. I have this batch file called Message.bat: @echo off ...
Ali EXE's user avatar
  • 1,369
1 vote
2 answers
131 views

Receive variable from a called batch file

I have two batch file here, test.bat and len.bat. len.bat is a function that receives input from test.bat, processes it and then return a result value back to test.bat. test.bat @echo off setlocal ...
Darwish's user avatar
  • 49
0 votes
1 answer
1k views

How to set environment variables in a PowerShell script defined in a configuration file?

I have a simple preferences system in batch. The bat renames the .ini to a .bat and call it. The variables or options that in the .ini will be initialized in that way. So I can use it to create a ...
JJB's user avatar
  • 15
0 votes
1 answer
176 views

Batch file: store output function call in var

This doesn't seem to be that hard, however, can't seem to get the output of a function call stuffed into a variable. SET info= call git log -6 REM echo %info% echo { "timestamp": "%time% %date%", "...
San Jay Falcon's user avatar
1 vote
2 answers
194 views

Is there a way to escape % while using call in batch file?

This is my first batch script. I was trying to escape % char so that is not used as variable. Double %% works when using start, but when I use %% with call it input en empty space and function missing ...
DevWL's user avatar
  • 18.9k
2 votes
2 answers
661 views

Can't get the ä, ç, or ã to print correctly using colorEcho in batch

So I want to print Jäger bomb and maçã in yellow where the rest of the line is standard white. The code I have is: SETLOCAL EnableDelayedExpansion for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E#...
Excallypurr's user avatar
3 votes
3 answers
10k views

Using call <file.bat> results in "sleep is not recognized as an internal or external command.."

I have a script that calls other commands in a for loop: for %%x in (%CMDS::= %) do ( call C:\%%x %1% echo "%%x complete" ) However, running this results the console spitting out : 'sleep' is ...
enrm's user avatar
  • 705

15 30 50 per page
1
2 3 4 5 6