Author Topic: I need help with folders and "txt" please help... Help Please ^^ ...  (Read 2685 times)

gamesmame

  • Full Member
  • ***
  • Posts: 97
    • View Profile
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.



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):



In this case, it looks like this:

 

Please help, I found information about .bat on the internet to do this but I got a little confused.

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: I need help with folders and "txt" please help... Help Please ^^ ...
« Reply #1 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.
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: I need help with folders and "txt" please help... Help Please ^^ ...
« Reply #2 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


And your batch-code: works
please upload next time as textfile.
write sourcecode manually from a screenshot : sucks.
« Last Edit: July 02, 2021, 11:39:21 AM by hermine.potter »
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

gamesmame

  • Full Member
  • ***
  • Posts: 97
    • View Profile
Re: I need help with folders and "txt" please help... Help Please ^^ ...
« Reply #3 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?
« Last Edit: July 02, 2021, 03:30:51 PM by gamesmame »

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: I need help with folders and "txt" please help... Help Please ^^ ...
« Reply #4 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
3) correct.
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

gamesmame

  • Full Member
  • ***
  • Posts: 97
    • View Profile
Re: I need help with folders and "txt" please help... Help Please ^^ ...
« Reply #5 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
3) correct.

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