Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: gamesmame on July 01, 2021, 09:19:48 AM

Title: I need help with folders and "txt" please help... Help Please ^^ ...
Post by: gamesmame on July 01, 2021, 09:19:48 AM
I need help with folders and "txt" please help... Help Please ^^ ...

I need to put files from hundreds of folders into txt files BUT each folder named with its corresponding .txt from each folder.

(https://i.imgur.com/02sOk9l.jpg)

And I need it to be in this format inside the .txt (if that's case I can also format after it inside the .txt later in this format I need):

(https://i.imgur.com/dLDJWBU.jpg)

In this case, it looks like this:

  (https://i.imgur.com/wQhqHkk.jpg)

Please help, I found information about .bat on the internet to do this but I got a little confused.
Title: Re: I need help with folders and "txt" please help... Help Please ^^ ...
Post by: hermine.potter on July 02, 2021, 01:22:24 AM
@ gamesmame
it's not so simple.

create a batch-file in root-folder, with the enclosed sourcecode.

the batch create .cmd-file, depending of folder name

it writes your informations per line into the .cmd-file

after : you need to edit the files manually or use notepad++ with regular expressions.
Title: Re: I need help with folders and "txt" please help... Help Please ^^ ...
Post by: hermine.potter on July 02, 2021, 11:29:54 AM
sorry. i don't know.
I cant read your error messages. Please translate it to english.

my sourcecode : works
(https://s20.directupload.net/images/210702/lfl5hi3m.gif)

And your batch-code: works
please upload next time as textfile.
write sourcecode manually from a screenshot : sucks.
(https://s20.directupload.net/images/210702/2aj7smhq.gif)
Title: Re: I need help with folders and "txt" please help... Help Please ^^ ...
Post by: gamesmame on July 02, 2021, 01:01:38 PM
^^

1 - In my batch-code i dont need "edit the files manually or use notepad++ with regular expressions." Right?

2 - But why here dont works WHY???? My Windows says... "'D' command is not recognized as an internal or external command or bat file"

3 - In WIN10 my friend say to me its works!!!  :-\  I repeat... here i use WIN7 mabe it is? you test the codes in WIN10 right?
Title: Re: I need help with folders and "txt" please help... Help Please ^^ ...
Post by: hermine.potter on July 02, 2021, 03:05:02 PM
please prevent fullquotes.
threads get unnecessary big and unreadable.

1) correct.
2) maybe the path environment is missed or something else (https://www.google.com/search?hl=de&gbv=1&q=batch+command+is+not+recognized+as+an+internal+or+external+command+or+bat+file)
3) correct.
Title: Re: I need help with folders and "txt" please help... Help Please ^^ ...
Post by: gamesmame on July 02, 2021, 03:35:57 PM
Code: [Select]
please prevent fullquotes.
threads get unnecessary big and unreadable.
1) correct.
2) maybe the path environment is missed or something else (https://www.google.com/search?hl=de&gbv=1&q=batch+command+is+not+recognized+as+an+internal+or+external+command+or+bat+file)
3) correct.

Sorry  :-[ and thank you  ;)!!! works now  ;D!! not perfect  :-\ but works!!