Click to See Complete Forum and Search --> : "D:" drive batch
Mike0179
11-26-2001, 02:10 PM
I am creating a multimedia cd using flash. I need to create batch files to link between the movie and picture files. I have the batches in one folder and the pictures in another with both of these folders in the root directory. I can get the batch files to Go to:
D:\movies\Pics\picname.jpg
and that works fine, but what if the drive name is different than "D:"? for example my computer at home is labled "M:". Is there a way to access the CD drive, without actually calling the lable (D:)? I have tried the CD's voulme lable, but that doesnt work either??!!
qball
11-30-2001, 09:36 PM
I think there is far easier way to do this thru Flash, as batch files are DOS, Flash is now (though I find Flash very limited).
Anyway, tough to do on the fly in a batch file, (though not impossible***) but you can use parameters...
---------------------------------------
rem mybatch.bat
%1:\movies\Pics\picname.jpg
---------------------------------------
to call batch:
call mybatch j
***what about multiple CD drives?
Mike0179
12-03-2001, 09:08 AM
So if you think there is an easier way to go about this in flash, please by all means do tell. I was under the impression that you couldn't open a file through flash unless it was .exe, .com, or .bat. It does sound a bit strange, a flash/batch relationship, but the functionality of it is great.
qball
12-03-2001, 09:36 PM
I think there is far easier way to do this thru Flash
Should be:
I think there is far easier way to do this OTHER THAN thru Flash...
Anyway, can YOU call a *.BAT from flash?
Mike0179
12-04-2001, 02:41 PM
Sure can. Just like you would any .exe or .com.
Just Use an FSCommand and type "exec" in the command line with the file name as the arguments:
on (release) {
fscommand ("Exec", "*.bat");
}
and I'm sure there is an easier way other than flash, but I'm already familiar with ActionScript, so I decided to use it.
qball
12-05-2001, 03:23 PM
ok, good, then my first answer will work.
use actionscript to call the *.bat passing the parameters you need to the batch file.
fscommand ("Exec", "*mybatch.bat J");
To determine what drive letter the given CD drive is little more problematic, though not impossible...
Mike0179
12-05-2001, 04:24 PM
Actually, i gave up on putting the Batches in a seaperate folder for neatness. As long as the batch is in the root directory of the CD, then the batch doesnt need a Drive letter. Just type:
@echo off
Start \Movie\Pics\whatever.pic
Anyways, i can always just hide the batches to take away the clutter.
I have another question too if you dont mind me asking:
Do you know where i can get a Visual Basic compiler other than Envelope? A deicent free one anyway....if they exist
strangerstill
12-07-2001, 09:33 PM
Path resolution operators:
.. : parent folder
\\ : root
So in a batch file, just use the path \\movies\pics\whatever.pic
qball
12-07-2001, 09:58 PM
A deicent free one anyway....if they exist
They exist for people that can spell:
deicent
http://www.dictionary.com/cgi-bin/dict.pl?term=deicent
at least he doesn't say "iffn"
Mike0179
12-10-2001, 10:05 AM
I sincerely apologize for the spelling error, it was an honest mistake. However I believe that You have also made a mistake in this thread earlier, and I was not so rude to hastily correct you:
[oops]
quote:
--------------------------------------------------------------------------------
I think there is far easier way to do this thru Flash
--------------------------------------------------------------------------------
And here's a word that I think you should learn:
http://www.dictionary.com/cgi-bin/dict.pl?term=courteous
Being a webmaster, I don't always have the time to find spelling errors in things so petty as Message Boards.
thanks for you time.
ps- I found a great compiler, thanks.
Danon
05-02-2006, 03:30 AM
Video to Flash Converter PRO is a batch Video to SWF converter for converting your digital videos to SWF Flash files. Video to Flash Converter PRO provide SWF file ready for the web or ready to be streamed across Internet connections.
Take a look here:
http://www.geovid.com/Video_to_Flash_Converter_Pro/
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.