Dragon Global Forums

Go Back   Dragon Global Forums > Other Software > DirMon Discussion

DirMon Discussion Discussion related to the DirMon application produced by Dragon Global. Questions, issues, problems, suggestions, etc. regarding Dragon Global should be posted here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2007, 03:30 AM
Junior Member
 
Join Date: Feb 2007
Posts: 9
vhurst is on a distinguished road
Default Job setup with Command Line variable

I'm trying to set up a job that will trigger off a file, lets say called dvd.img, and in turn run the file in the same directory called dvd.burn.bat. Since the BASENAME ("dvd" in my example) is the variable, I tried the following (see screen shot), and it's working great!
Reply With Quote
  #2 (permalink)  
Old 02-21-2007, 01:12 PM
Jere_Jones's Avatar
Administrator
 
Join Date: Apr 2008
Posts: 1,991
Jere_Jones has disabled reputation
Default

Change the command line options to:
/K %BASENAME%.burn.bat

and then test it. The command line window should remain open at the end of the batch file. If it is working, you can change /K to /C and the window will close upon completion.

DISCLAIMER: This is only theoretical. I don't know if it will work, but I'd like to know.

Jere
__________________
DEATH TO ALL COMMERCIALS
Latest Stable: ShowAnalyzer 1.0.58 - 31 Jan 2010
Latest: DirMon2 Beta 0.6.4 - 8 May 2008
Reply With Quote
  #3 (permalink)  
Old 02-21-2007, 03:39 PM
Junior Member
 
Join Date: Feb 2007
Posts: 9
vhurst is on a distinguished road
Default

Okay, I had to connect to the PC localy, not via RDC to see the command window. The %BASENAME% variable looks like it wants to work, but the filename has spaces, and the command window is only trying to run the command name up to the first space. This particular attempt is being performed on the filenames "24 - Day 6 300PM - 400PM.dvdList.0.img" and "24 - Day 6 300PM - 400PM.dvdList.0.burn.bat".

Using different "Program to run", yielded different failured.

Using "cmd" failed due to "'24' is not recignized as an internal or external command...".

Using "command" didn't launch a command window at all.

Using "command.com" failed with a "Bad command or file name" message.

I don't see a variable that will extrapolate the 8dot3 version of the BASENAME.
Reply With Quote
  #4 (permalink)  
Old 02-21-2007, 08:22 PM
Junior Member
 
Join Date: Feb 2007
Posts: 9
vhurst is on a distinguished road
Default

I figured it out. The command line options needed to be set to:

/C C:\SageDVD\"%BASENAME%.burn.bat"

This is sweet. I should have fully automated DVD burning now. Woot!
Reply With Quote
  #5 (permalink)  
Old 02-22-2007, 11:20 AM
Jere_Jones's Avatar
Administrator
 
Join Date: Apr 2008
Posts: 1,991
Jere_Jones has disabled reputation
Default

Quote:
Originally Posted by vhurst View Post
I figured it out. The command line options needed to be set to:

/C C:\SageDVD\"%BASENAME%.burn.bat"

This is sweet. I should have fully automated DVD burning now. Woot!
You can change that to
Code:
/C [[C:\SageDVD\%BASENAME%.burn.bat]]
and DirMon will add quotes if necessary and not if, umm, not.

Jere
__________________
DEATH TO ALL COMMERCIALS
Latest Stable: ShowAnalyzer 1.0.58 - 31 Jan 2010
Latest: DirMon2 Beta 0.6.4 - 8 May 2008
Reply With Quote
  #6 (permalink)  
Old 02-23-2007, 04:01 AM
Junior Member
 
Join Date: Feb 2007
Posts: 9
vhurst is on a distinguished road
Default

Quote:
Originally Posted by Jere_Jones View Post
You can change that to
Code:
/C [[C:\SageDVD\%BASENAME%.burn.bat]]
and DirMon will add quotes if necessary and not if, umm, not.

Jere
Jere, that code didn't work for me. It failed to pass the entire filename, breaking at the first space. I set it back to the quotes around the filename w/ variable, like:

Code:
 
/C C:\SageDVD\"%BASENAME%.burn.bat"
...and it works swell.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the command line variables? cnovak DirMon Discussion 0 11-24-2007 05:41 PM
Command Line Options craigdthom ShowAnalyzer Beta 1 11-05-2007 06:29 PM
Command line switch to generate EDL files phredeaux ShowAnalyzer Beta 0 08-22-2007 08:13 AM
Do bat files run in a different way when they are run from DirMon not command line? bashers DirMon Discussion 1 05-21-2007 07:42 AM
Command Line substitution mickelin DirMon Discussion 3 01-08-2007 05:27 PM


All times are GMT -4. The time now is 07:24 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0