Skip to main content
Advice
0 votes
2 replies
54 views

i need to make cmd file that copying "Merge.txt" from the same path directory of cmd file to "D:\StackFlow\" Note: i want to copy that file whenever i changed the directory source
A Mu's user avatar
  • 23
Advice
0 votes
4 replies
63 views

I have some data fields gathered in a SET statement like this: set "datastr=%num_cde%, %id_achat%, %modele%, %sysfam%, %serial%, %ldt%" later echoed as an email body as: SET "EmailBody=...
calade's user avatar
  • 35
0 votes
0 answers
48 views

When testing for a particular letter in a batch file option, I use code like: set opts=%2 if not "%opts:t=%" == "%opts%" goto :handle-t-option However, if %2 is empty, which means ...
Victoria's user avatar
  • 523
1 vote
1 answer
105 views

I have a batch escaping problem involving 3 files: chain.bat conatins this code: for %%x in (%*) do ( %%~x ) b.bat contains this code: chcp 65001 >nul start chrome --profile-directory="...
Shai Ben-Dor's user avatar
-1 votes
0 answers
80 views

I am trying to run a bat file using the taskscheduler_create function from the taskscheduler R package without being sucessful. I can run the R script without problems but it crashes with a bat file. ...
Salvador's user avatar
  • 1,981
-1 votes
1 answer
67 views

SET UP I have multiple scripts that I execute with a .bat file, like so: cd C:\\path\\to\\my\\project\\directory echo Running script 1 "C:\\ProgramData\\miniforge3\\envs\\myenv\\python.exe" ...
bismo's user avatar
  • 1,655
11 votes
2 answers
747 views

I'm trying to persist the last modification timestamp of a set of files in a Git repository. I understand that Git doesn't natively support tracking filesystem metadata, so some sort of customization ...
IInspectable's user avatar
  • 53.3k
Advice
0 votes
3 replies
106 views

I have a report CSV file that has some special characters in the header row. I would like to set up a short script in a .bat file to remove these characters, so I can schedule a task to automatically ...
Donald.H.Hartley's user avatar
0 votes
3 answers
127 views

I would like to rename a bunch of files in a given directory that are already present in ascending order to another line of consecutive ascending numbers. The goal is to close gaps in between and get ...
Arek's user avatar
  • 1
Best practices
1 vote
4 replies
131 views

I have this .bat file that I use to open .csv files, which counts the lines in them and uses Excel to open if under a million records and a separate program to open if more than a million records. The ...
Tyler Moore's user avatar
-2 votes
1 answer
73 views

I obtained a batch script from Google AI for performing string replacement on the content of a list of text files in Windows. This is what I got--with a little tweaking, first. (Just testing at this ...
Dave Clark's user avatar
1 vote
4 answers
174 views

Given is a string which is a url of a file, e.g. http://url.com/file.zip. I want to extract the path without the file name, i.e. http://url.com/. My idea for doing this was to break down the string ...
C4lculated's user avatar
1 vote
3 answers
250 views

I have a large number of files (about 3800) that I want to run a program over. The program reads a WAV file and makes a short .TSV text file containing the WAV's lip-sync data (but that is by-the-by ...
Benjamin Rich's user avatar
-1 votes
2 answers
103 views

My bat file named A.BAT is: @echo off set /a file = %1 set /a group = %2 @echo file is %file% @echo group is %group% ren %file% myfile-%group%_%date%.dat exit =============...
G Geber's user avatar
1 vote
1 answer
105 views

I noticed that some software I use, AutoDarkMode, doesn't randomize the first wallpaper it switches to, so I thought I'd write a batch file to do it by copying one wallpaper in the folder and renaming ...
JPrest's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
9