Tagged Questions
0
votes
0answers
13 views
Want to run cc cleaner over network - need batch file that prompts for computer name and user name.
I want to be able to run a .bat file on my local computer where it will execute the command:
PSEXEC \Taylor-PC -c “C:\Users\Taylor\Downloads\Clean.exe” -u TaylorGibb –p Password
Where the
...
1
vote
2answers
52 views
Merge Two text files line by line using batch script
I have 2 text files; A.txt and B.txt and I want to merge them to make C.txt using a batch script.
However (here's the tricky part) I wish to do it so each line from A.txt is appended with a space ...
2
votes
2answers
28 views
Batch files datetime
I have written a batch file. It's my first one so I still suck at this. What it does it copies a database backup file from a unc folder path and paste it to my local machine. The file name changes ...
2
votes
2answers
95 views
Use the contents of a file to rename it [duplicate]
I have binary datafiles that are approximately 20 MB in size and that have random filenames, all starting with "AA". In each file's content, they have a specific string at a fixed position (in all ...
0
votes
2answers
16 views
How to bulk add folder name to file name?
I have a folder struktur like this:
/1/1/master.jpg
/1/2/master.jpg
/1/3/master.jpg
/2/1/master.jpg
/2/2/master.jpg
/2/3/master.jpg
...
I need to import all images to a website, but the file name ...
0
votes
1answer
29 views
Batch: Output file names with relative paths to files and additional signs
I have a folder structure like this:
c:/foo/bar1/a002345.vi
c:/foo/bar1/somefilename.vi
c:/foo/bar2/b005632.vi
...
c:/foo/bar26/z002345.vi
Now I want to execute a batch file in the folder c:/foo/ ...
0
votes
3answers
23 views
Find files that have an extension larger than a specific number
I am attempting to create a script that will search through a directory for files whose extension are larger than a specific numerical value. The process I am monitoring creates files with numeric ...
1
vote
4answers
57 views
remove strange file extensions
I have a folder which contains some files with names as given below
0003.4b3d943b8df71af248d12f8b2e7a224a
0004.1874ab60c71f0b31b580f313a3f6e777
0005.1f42bb885de0ef7fc5cd09d34dc2ba54
...
0
votes
1answer
18 views
Modify a file and save it by the same file name in batch
I want to modify a file and save it by the same file name. does this operation is possible in batch? Indeed by the following example, "%~f1" is empty at the end of execution while changing it in ...
-2
votes
0answers
29 views
batch code to search a string with parameter [closed]
actually i want to create a batch code which can search a string in any file and in which i can pass
1. String to be searched
2. Input directory – directory where the files to be searched
3. Output ...
0
votes
2answers
44 views
Opposite of FOR (loop)
I got the command:
for /f "delims=// tokens=2,4,6" %%a in (memod.txt) do @echo %%a %%b %%c
Which work as it shall.
But i need one which does not go through every single line of text, but through a ...
0
votes
2answers
28 views
Use of parameters in a echo statement in a batch file SOLVED
I need help with some batch file syntax. In my batch file I have the line:
set /p memo=Memorize: %=%
Which will allow a user to set some values. Lets say the user writes "hello world".
So now, ...
0
votes
3answers
61 views
Ping Servers From Text File
I'm trying to ping about ~20-30 servers that are on a text file and can be updated accordingly (servers change name constantly or become obsolete). And I don't want to put the servers in the batch ...
0
votes
3answers
42 views
batch file to run recursively
I would like to run command line utility recursively for all folders
in windows. I have tried with the following, but not succesfully.
FOR /R "C:\AMDB\30-Apr-2013\Input\" %%G in (.) DO (
shp2sdo.exe ...
0
votes
3answers
36 views
Need to find text in log file and send following five lines to text file using .bat file
I've been searching for a few days and have been unable to find anything regarding my specific question.
I have a log file I would like to search (using findstr) for the words 'Login Successful", ...