Loading ...
Sorry, an error occurred while loading the content.
 

Re: [jasspa] Quoting shell-command

Expand Messages
  • Thomas Hundt
    Since when does the DEL command take forward slashes? set-variable #l0 &sprintf del %s%s%s &itoa 34 c: foo.lst &itoa 34 ml-write #l0 shell-command #l0
    Message 1 of 4 , Sep 24, 2005
      Since when does the DEL command take forward slashes?

      set-variable #l0 &sprintf "del %s%s%s" &itoa 34 "c:\\foo.lst" &itoa 34
      ml-write #l0
      shell-command #l0

      Seems to work.

      -Th

      Gadrin wrote:

      >I've been trying to figure out how to delete a file from within a
      >macro.

      >set-variable %cmd &sprintf "del %s%s%s" &itoa 34 "c:/program
      >files/jasspa/microemacs/junk.txt" &itoa 34
      >ml-write %cmd
      >shell-command %cmd
      >!abort
    Your message has been successfully submitted and would be delivered to recipients shortly.