Unix/MAC to DOS Convert ? and automatically save?

Unix/MAC to DOS Convert ? and automatically save?

3
NewbieNewbie
3

    Aug 30, 2005#1

    hi,

    i setup in the options "unix/mac2dos" automatically convert when open the files... i just want to save then all the text files automatically... i said "save all" but the files are still in unix format..

    any idea how to convert multiple files whcih are some in unix some in dos format just into DOS format and then automatically save them in the same origin directory ?

    i just dont know how to make it ;(

    6,686585
    Grand MasterGrand Master
    6,686585

      Aug 30, 2005#2

      Advanced - Configuration - General - Load/Save/Conversions

      Unix/Mac file detection/conversion must be set to Automatically convert to DOS format and Save file as input format (UNIX/MAC/DOS) must be set to Off.

      Then all files are automatically converted to DOS during file open and saved in DOS format. But you will have to make any modification to all files to force UltraEdit to really save all files. UltraEdit does not save files, which where not modified by the user.
      Best regards from an UC/UE/UES for Windows user from Austria

      3
      NewbieNewbie
      3

        Oct 01, 2005#3

        hm this sucks when i have to do any file edit and then manually save. but better than nothing. any other ideas ?

        im just not able to find any cheap drag/n/drop converter which just converts all unix files i drop to dos and save automatically.

        i just got a bunch of files which i dont want to save each single .. hm...

        6,686585
        Grand MasterGrand Master
        6,686585

          Oct 01, 2005#4

          Sorry, that I first have not thought about the easiest method for converting Unix files to DOS files. Run a Replace In Files with following options:

          Find What: ^n
          Replace With: ^p

          Regular Expressions must be unchecked.


          But make sure, that all files found by this replace are really Unix files.

          To check, if something was mixed after replace, run a Find In Files and search for ^r^n^n (CR LF LF). This string should not be found!


          Ah, wait a moment. With an UltraEdit style regular expression, you can make sure, that there is no carriage return before the linefeed.

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

          Regular Expressions must be checked here. Advanced - Configuration - Find - Unix style Regular Expressions should not be checked.
          Best regards from an UC/UE/UES for Windows user from Austria