Execute active file based on file extension

Execute active file based on file extension

2
NewbieNewbie
2

    Dec 18, 2007#1

    Is there a macro command like this: rundos fileName ???

    Because I don't want to configure always a user tool.

    tnx

    6,675585
    Grand MasterGrand Master
    6,675585

      Re: Syntax highlighting for dos command output

      Dec 18, 2007#2

      From within a macro or script you cannot run executables directly. That would be a high security risk - see Microsoft with ActiveX and Visual Basic Scripts. You must define a user tool or project user tool with the command and its parameters if you want to run it from within a macro or script.

      You have hopefully read the help about the user tool configuration because there are some variables which you can specify on the command line of the user tool.

      Well using a user tool with the command line start %sel% would allow you to run everything from within a macro if the macro creates and selects the rest of the command line.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Dec 19, 2007#3

        thank you

        4

          Dec 27, 2007#4

          I set up a TOOLBAR CONFIG on F5 that runs super and is simple.
          Its "Run by Extension".
          It just runs the file or whatever based on its association.
          For example, outside of UE and opened a DOSBOX and typed my filename, like, "index.html", IE opens it.

          Here's my setting for doing this in UE Config:
          Menu Item Name: Run By EXT
          Command Line: cmd /c "%f"
          Working Dir: %P

          OPTIONS:
          Program Type: DOS
          Save Active file: checked (not required, but a good thing since you ARE going to run that file)

          OUTPUT:
          Command Output
          [x] Output To ListBox
          [x] Capture Output

          Replace Text:
          [x] No

          Now this works with any file you have as it is associated as the WINDOWS DEFAULT. If you like to "compile" as a DEFAULT, then change the WINDOWS assoc for it.
          Keep in mind that when you are in explorer and double click, the NEW default is used, eg, it will compile and not open it in UE )or however it was set.

          For me, UE is pretty much my DESKTOP replacement 8) and I've set it so that I do everything in there.
          Example:
          In UE FileTree, I may see a file "hompage.jpg".
          I'll double click(opening it in UE).
          It shows BINARY (ugh!) , but so what! I want to see it!
          So I hit my F5(shortcut to "Run By Extenson").
          BOOM! Up comes the MS Image Viewer showing the file.
          So, I do not like that. I re-asoc'd it to PAINT.
          Hit F5 again, and now its in PAINT.

          Good luck with this tip.