Launching UE from DOS window

Launching UE from DOS window

18
Basic UserBasic User
18

    Apr 13, 2007#1

    Thought I'd offer a suggestion. Not sure how many are aware that this can be done, or how many users actually use DOS windows....

    I needed a way to launch UE from a DOS window and I am almost never in the same directory as the UE executable. So all I had to do was add a batch file to the C:\Windows folder called UE.BAT. Inside the file were 2 lines:
    @echo off
    start C:\PROGRA~1\IDMCOM~1\ULTRAE~1\uedit32.exe %1



    Now I can launch UE from anywhere and specify the file(s) that I want to edit just by typing UE [filename]. Can even use wildcards!

    30
    Basic UserBasic User
    30

      Apr 14, 2007#2

      Nice tip with the wildcars. thx.
      Using UE + UC (German Editions) + Windows XP + Windows 7 Ultimate

      112
      Power UserPower User
      112

        Apr 14, 2007#3

        Pebblecrusher wrote:@echo off
        start C:\PROGRA~1\IDMCOM~1\ULTRAE~1\uedit32.exe %1
        You should only need one line:
        @start C:\PROGRA~1\IDMCOM~1\ULTRAE~1\uedit32.exe %1

        HTH,
        Paolo
        There is no such thing as an inconsistently correct system...
        Therefore, aim for consistency; in the expectation of reaching correctness!

        18
        Basic UserBasic User
        18

          Apr 25, 2007#4

          Sure enough! Thanks for the tidbit.

          79
          Advanced UserAdvanced User
          79

            Apr 26, 2007#5

            One more small enhancement: change the %1 to %* and you'll be able to specify command line options as well as multiple filenames (not just a single wild-card).

            @start C:\PROGRA~1\IDMCOM~1\ULTRAE~1\uedit32.exe %*

            236
            MasterMaster
            236

              Apr 26, 2007#6

              Maybe this is a stupid question, but why not just add the UE directory to the PATH environment variable? Because you can type "ue" instead of "uedit32"?

              79
              Advanced UserAdvanced User
              79

                Apr 26, 2007#7

                pietzcker wrote:Because you can type "ue" instead of "uedit32"?
                That's one reason (as insignificant as it may seem).

                Another (for me anyway) is that I prefer not to load up my path with directories that have only a single command I'm interested in running - in those cases I usually put an 'alias' type of batch file in my util directory.

                But there's no overwhelming reason to do one over the other - just a preference thing.

                18
                Basic UserBasic User
                18

                  Apr 30, 2007#8

                  Nice addition mwb1100! Not sure what command line parameters are available with UE though. :)

                  You also got the reasons why I set this up.