Thanks @Williamsburg,
I saw that stack overflow post already, but it doesn’t help.
I don’t care so much that the background should be fixed, I just want the images to be visible.
I am not a programmer and get dizzy just from looking at those black screens with green letters, however sometimes I realize that this is the only solution
Can someone @Developers-Shutfim-Professional guide me how I can make a script to create 100 text files all of them will have the same file name and each file should have a number from 1-100, and the files should be saved in folders with the same number that the file contains.
Thanks in advance for any help.
Please elaborate on what you want in your files.
How about something like this (run in CMD):
FOR /L %G IN (1,1,100) DO mkdir %G & echo > %G\name-%G.txt
@מי-יודע said in How to create multiple txt files with incrementing numbers?:
Please elaborate on what you want in your files.
In the files I just want the numbers 1,2,3, - 100
@yzahn said in How to create multiple txt files with incrementing numbers?:
How about something like this (run in CMD):
FOR /L %G IN (1,1,100) DO mkdir %G & echo > %G\name-%G.txt
In the files I get
ECHO is on.
@twist
This slight correction will fix that:
FOR /L %G IN (1,1,100) DO mkdir %G & echo. > %G\name-%G.txt
@yzahn Thanks so much!
But now I get blank files, I need the files to contain the same number as the folder number
so I have 100 folders numbered 1-100 inside each folder there is one file named number.txt
and in each file there is the same number as the folder number.
@twist said in How to create multiple txt files with incrementing numbers?:
I need the files to contain the same number as the folder number
oh…
So this:
FOR /L %G IN (1,1,100) DO mkdir %G & echo %G > %G\number.txt
Thanks, Point on what I was looking for!!
@yzahn I hope I am not bothering to much I have one more question.
Now that I have all those folders, how can I take a file and paste it ‘as it is’ into all of those folders?
@twist I’m not sure what you mean. You have a file and you want to copy the exact same file to multiple folders? Please explain clearly exactly what you need.
@yzahn said in How to create multiple txt files with incrementing numbers?:
@twist I’m not sure what you mean. You have a file and you want to copy the exact same file to multiple folders? Please explain clearly exactly what you need.
yes
I have 100 folders running from 1-100 and I want to copy a file ‘xxx.mp4’ into all of them
@twist how about this:
FOR /L %G IN (1,1,100) DO copy xxx.mp4 %G
(Make sure that you are running the command prompt in the parent directory of the folders, if not first run cd c:\xxx
replacing xxx
with the parent directory of the folders, if the file xxx.mp4 is not in the same directory you will need to write the full path to the file in the command).
@yzahn
I now get an error
The system cannot find the file specified.
@twist you need to make sure all the paths are correct.
@yzahn said in How to create multiple txt files with incrementing numbers?:
@twist you need to make sure all the paths are correct.
I have one directory that has 100 folders named 1-100 and in the same directory there is a file called 123.mp4
I open a CMD window, navigate to the parent folder and run the code you wrote.
@twist did you replace xxx.mp4
in the code with the real file name?
@yzahn Yes I did
@twist hmm…
Do you get the error 100 times?
@yzahn yes
LOL I know why it didn’t work
I tried this on a file with another extension not .mp4 looks like this command only works with certain file types .