Announcement

Collapse
No announcement yet.

batch file to change text file in windows

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • batch file to change text file in windows

    Hi everyone,
    Hopefully you guys can help me with my small issue. To clear my problem I am working on a Windows machine and need a batch file to change a text file.

    My problem is:
    I get a .txt file with another programm which looks like this the characters allways stay the same.
    Code:

    Code:
    3539
    78060031
    523 )
    I'd like to write a batch wich converts the text.txt to

    Code:
    353978060031523
    thank you in advance for your help

  • #2
    Done thx to noone here

    Code:
    for /f "tokens=*" %%a in (textfile3.txt) do (
        set "concatenate_string=!concatenate_string!%%a"
    )
    
    echo !concatenate_string! > "text.txt"
    
    FOR /F "usebackq delims=" %%a IN ("text.txt") DO (
      Set "line=%%a" & echo !line: =!  
    )>"text1.txt"
    set str>> "%OutputFile%" echo.!s:~24!
    text1.txt

    Comment


    • #3
      Originally posted by Peterpeter View Post
      Done thx to noone here
      Well, FFS. No reply in 17 whole minutes and you are complaining about the lack of support. Really you should DEMAND a REFUND of your membership fee.
      (Oh, I forgot... people give their free time to help others, and we don't charge a membership fee)

      Please consider a bit of politeness next time you post or your stay here will be very short.
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment

      Working...
      X