Results 1 to 3 of 3

Thread: win xp bat/cmd help (dragndrop to a batch)

  1. #1

    win xp bat/cmd help (dragndrop to a batch)

    hi there gang


    I'm trying to automate some 3d (maya) renders, and for that I have some batch files

    I can call the file I need to render like so

    Code:
    C:\>render file.mb -options
    (the exe being render.exe)


    but could I possibly drag and drop file.mb on the batch/cmd file to execute the code ? Google doesn't like my question's syntax apparently.

    thanks for any insight - I know it works with .exes but I'm not too sure about batch files

    cheers

    mlk

  2. #2
    I had an example that did just that, but I can't seem to find it. It essentially allowed you to drag and drop a set of code files for compilation into an EXE.

    Bigmtnskier created something a few years ago as well, so you may want to PM him on that

  3. #3
    thanks kirupa

    my google skills were at an all time low, found my answer:

    Quote Originally Posted by http://windowsxp.mvps.org/dropbat.htm

    Problem

    Drag and drop does over .BAT files has stopped working?

    Example:

    If you create a batch file with the following contents:
    Code:
    echo file: %1
    pause
    and then drag a file over the batch file, the result should be as follows:

    file: filename.ext

    Suddenly the drag-drop has stopped working. How to fix this problem?

    Resolution

    Click Start, Run and type these commands:

    1. cmd /c ftype batfile="%1" %*
    2. cmd /c assoc .bat=batfile
    3. regsvr32 /i shell32.dll

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012