Skip to main content

All Questions

Tagged with
1 vote
2 answers
2k views

Why is change directory not working when SETLOCAL ENABLEDELAYEDEXPANSION is used

I have an existing windows batch script (named as test1.bat) as below : @echo off SETLOCAL ENABLEDELAYEDEXPANSION set nop=4 for /l %%z in (1, 1, %nop%) do ( set x=%%z echo !x! ) chdir /d D:\app\ ...
Shri's user avatar
  • 13
1 vote
2 answers
2k views

Running file from batch file

I am working in Windows 10. This is my code saved in .bat file: %windir%\System32\cmd.exe "/K" C:\Users\Alex\AppData\Local\Continuum\anaconda3\Scripts\activate.bat C:\Users\Alex\AppData\Local\...
vasili111's user avatar
  • 537
-1 votes
1 answer
2k views

Batch script to merge files using copy command in numerical order

Would appreciate it if anyone can help me with this request. I need a dynamic batch script which can do the below command for ANY number of files: Copy 1.txt + 2.txt + 3.txt + 4.txt newfile.txt If ...
binaryfinary's user avatar