Tapatalk

Batch format conversion from UNIX to DOS

Batch format conversion from UNIX to DOS

1
NewbieNewbie
1

    Apr 05, 2005#1

    Hello everyone,

    I hope someone can help me.

    I'd like to copy a large number of files, located in several subdirectories, to another place, respecting the same subdirectories.
    But the files should also be converted from a UNIX format to a DOS format during this copy.

    Do you think that a macro could do that?

    Thans a lot in advance
    Stephane

    6,685587
    Grand MasterGrand Master
    6,685587

      Apr 27, 2006#2

      Yes, a macro can do this. With my knowledge now I could write such a macro. Do you still need it?

      But it is much easier without a macro. First copy all files. Then run a normal Replace In Files (not a regular expression) on the copied files with searching for ^n and replacing it with ^p.

      If the directories with the copied files also contains already DOS files, then run the Replace In Files with Regular Expression checked with following search and replace strings:

      UltraEdit style regular expression:

      Find: ^([~^r]^)^n
      Replace: ^1^p

      Unix style regular expression:

      Find: ([^\r])\n
      Replace: \1\p
      Best regards from an UC/UE/UES for Windows user from Austria