If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#31
|
|||
|
|||
DVD insertion to run batch file
Hodges wrote:
On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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.) |
Ads |
#32
|
|||
|
|||
DVD insertion to run batch file
Olórin wrote:
Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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). 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. |
#33
|
|||
|
|||
DVD insertion to run batch file
Olórin wrote:
Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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). 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. |
#34
|
|||
|
|||
DVD insertion to run batch file
Rick Merrill wrote:
Olórin wrote: Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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. 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. |
#35
|
|||
|
|||
DVD insertion to run batch file
Rick Merrill wrote:
Olórin wrote: Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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. 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. |
#36
|
|||
|
|||
DVD insertion to run batch file
On Oct 1, 4:10*am, "Olórin"
wrote: Rick Merrill wrote: Olórin wrote: Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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. 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/s.../bb897553.aspx) to launch the batch file from a remote machine. |
#37
|
|||
|
|||
DVD insertion to run batch file
On Oct 1, 4:10*am, "Olórin"
wrote: Rick Merrill wrote: Olórin wrote: Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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. 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/s.../bb897553.aspx) to launch the batch file from a remote machine. |
#38
|
|||
|
|||
DVD insertion to run batch file
Hodges wrote:
On Oct 1, 4:10 am, "Olórin" wrote: Rick Merrill wrote: Olórin wrote: Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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. Sorry, I don't know what you mean by an "auto-x function". 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. 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. Good advice! He could also use psexecute (available for free from Sysinternals http://technet.microsoft.com/en-us/s.../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) |
#39
|
|||
|
|||
DVD insertion to run batch file
Hodges wrote:
On Oct 1, 4:10 am, "Olórin" wrote: Rick Merrill wrote: Olórin wrote: Hodges wrote: On Sep 30, 7:20 am, Hodges wrote: On Sep 29, 6:17 pm, Rick Merrill wrote: Steve Hayes wrote: On Tue, 29 Sep 2009 09:18:56 -0400, Rick Merrill wrote: @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. Sorry, I don't know what you mean by an "auto-x function". 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. 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. Good advice! He could also use psexecute (available for free from Sysinternals http://technet.microsoft.com/en-us/s.../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) |
Thread Tools | |
Display Modes | |
|
|