Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


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

    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



  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


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


    If you create a batch file with the following contents:
    echo file: %1
    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?


    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


Copyright 1999 - 2012