DVD insertion to run batch file

  • Thread starter Thread starter Rick Merrill
  • Start date Start date
That is right: here is the situation: the computer is in Town Hall and
the power is off to the monitor (so I can't see the mouse).

Doesn't really clarify your set-up or problem much, at least to me, sorry!
Can you run a remote desktop session to the computer, or use one of the
several free VNC apps? If you can't see the mouse, how do you know you'llbe
doing the following correctly, which you described earlier:

[# Open Windows Explorer by pressing the Windows + "e" key.]
# Right-click the desired CD-ROM and select Properties from the menu.
# Select the AutoPlay tab
So I need
a keyboard shortcut that would launch the batch file. I say this now
becuase it looks like no auto-x function can do it, So I'll have to do
something.

That's easy: create the batch file as others have described, then create a
shortcut to it somewhere on your Desktop or in your Start Menu. On this
shortcut, right-click > Properties, click in "Shortcut key", press a key
combination (eg Ctrl+Alt+c) and OK back out. Ctrl+Alt+c should fire it off.

Sorry, I don't know what you mean by an "auto-x function".

NB: if you delete this shortcut, clear the "Shortcut key" field and press
Apply first. Otherwise, Windows can have a habit of holding on to that key
combination, playing havoc with future shortcuts you may want to create.

He could also use psexecute (available for free from Sysinternals
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx) to
launch the batch file from a remote machine.
 
Hodges said:
Rick said:
Olórin wrote:
Hodges wrote:
On Sep 30, 7:20 am, Hodges <[email protected]>
wrote:
On Sep 29, 6:17 pm, Rick Merrill <[email protected]>
wrote:
Steve Hayes wrote:
On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill
@ECHO OFF
IF NOT EXIST C:\VOBFILES mkdir c:\VOBFILES
XCOPY *vob c:\VOBFILES
EXIT
The method is good, but ... it needs to overwrite without asking
and how does it know to use the "E:" drive for the source?
just put E: on the second line.
oK, but what is the name of the file and where do you put it? I
can't put it ON the DVD.
Like Steve said, just copy the text to a .txt file and rename it to
something like VOBFILES.bat
Doesn't matter where you put it if you use the corrected one I
posted. Could put it on your desktop or anywhere else. Double-click
to run. That's assuming everything's on the root of the drive. If
there are folders on the drive you should use XCOPY /Y E:\
C:\VOBFILES That will copy everything on the DVD to the C:\VOBFILES
folder. In that case, you don't need the CD /D E:\ line.
OOPS correction again. (I'm not quite awake yet)
XCOPY /E /Y E:\ C:\VOBFILES
E copies empty subdirectories.
You could also use /S instead of /E if you only want to copy
subdirectories with files in them.
@ECHO OFF
IF NOT EXIST C:\VOBFILES MKDIR C:\VOBFILES
XCOPY /S /Y E:\ C:\VOBFILES
EXIT
OP wants to know if it's possible to repoint the action of clicking
"OK" of the autoplay prompt to kicking off this copying action. It
seems to me that this hurdle has yet to be addressed. (Although a
desktop batchfile doesn't take much hunting down and clicking on
when you know you've inserted a DVD - or a copy of the DVD could be
made with the appropriate autorun.inf file added.)
That is right: here is the situation: the computer is in Town Hall and
the power is off to the monitor (so I can't see the mouse).
Doesn't really clarify your set-up or problem much, at least to me, sorry!
Can you run a remote desktop session to the computer, or use one of the
several free VNC apps? If you can't see the mouse, how do you know you'll be
doing the following correctly, which you described earlier:

[# Open Windows Explorer by pressing the Windows + "e" key.]
# Right-click the desired CD-ROM and select Properties from the menu.
# Select the AutoPlay tab
So I need
a keyboard shortcut that would launch the batch file. I say this now
becuase it looks like no auto-x function can do it, So I'll have to do
something.
That's easy: create the batch file as others have described, then create a
shortcut to it somewhere on your Desktop or in your Start Menu. On this
shortcut, right-click > Properties, click in "Shortcut key", press a key
combination (eg Ctrl+Alt+c) and OK back out. Ctrl+Alt+c should fire it off.

Sounds like a good tip.

It appears there is no way to have the disk insertion start a functions
using autorun or the like other than modifying the disk itself.

Good advice!
He could also use psexecute (available for free from Sysinternals
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx) to
launch the batch file from a remote machine.

I also can use "remote desktop" for that purpose (and it is behind a
solid firewall)
 
Back
Top