Help - Search - Members - Calendar
Full Version: Are cmd files necessary ?
The CD Forum > Bart's PE Builder > Plugins
knap
Hi

I've noticed that some plugins have cmd files and some don't.
Can someone explain the logic behind?

Thanks
Ed_P
Some plugins are set up to use them and some aren't.
rdsok
CMD and BAT ( batch ) files are essentially the same thing... They usually contain multiple sets of commands that would otherwise have to be typed in or called seperately...

Example.... to copy a set of files to the temp folder and then run the command you'd see something like.. I'll place comments in the paranthesis to explain the commands, they aren't part of the CMD file itself normally

md B:\MYPROGRAM ( create a folder for the files you want to copy so they are seperate from others )

copy X:\PROGRAMS\MYPROGRAM\*.* B:\MYPROGRAM ( copy the files from the disk to the ram drive folder you created

B:\MYPROGRAM\PROGRAM.EXE.... ( run the program itself )


So in answer to your question... no they aren't required but they do make it much easier so you wouldn't be required to perform each step manually
knap
Thank you much for the replies.

Why some programs should be copied to ramdisk temp in order to be executed, and other can be started from usb/cd drive (i use usb) ?

For instance, plugins like Total commander and PC wizard 2004 run from the usb drive (no cmd files and no need for transfer to ramdisk temp) while many others have cmd's included which transfer their executable to ramdisk.
If i want to create a plugin for a program, what determines should i start the exe (and accessory files) from ramdisk or from the usb drive ?
Ed_P
QUOTE (knap @ Dec 18 2011, 06:28 PM) *
Why some programs should be copied to ramdisk temp in order to be executed, and other can be started from usb/cd drive (i use usb) ?

Initially it was because some programs require a writable environment in which to execute and BartPE was designed to run from a CD which is non-writable. A second consideration as USB drives became popular was running BartPE consistently, the same way each time, no changes from the first time to the next.

So whether the plugin you want to create will use a RAM drive or not will depend on your need to want either of those considerations.
knap
Thank you for the explanation.

Can odbc support be included in bartpe ? (i need to run 'sql anywhere')
jaclaz
QUOTE (knap @ Dec 19 2011, 02:39 AM) *
Can odbc support be included in bartpe ?

Yes.
http://homepages.tesco.net/J.deBoynePollar...no-answers.html

you could have tried searching for it whistling.gif.
You may have landed here wink.gif:
http://www.911cd.net/forums//index.php?showtopic=16210
http://www.911cd.net/forums//index.php?showtopic=12108

cheers.gif
jaclaz
knap
QUOTE (jaclaz @ Dec 19 2011, 10:25 AM) *

loleverybody.gif
Btw have you ever answered the question "do you know what time is it?" with Yes?
I did. biggrin.gif

QUOTE


Actually i did, but only after asking the question here innocent.gif

Sorry. Sometimes we're all tempted to shortcuts, especially if we encounter a knowledgeable person, who obviously can save you hours of search and in the end of the day give you better solution than you yourself would find.

Anyway i doubt the implementation of a DB on bartPE will be a 'first shot hit', so i count on your support guys.

cheers.gif
jaclaz
QUOTE (knap @ Dec 19 2011, 06:55 PM) *
Anyway i doubt the implementation of a DB on bartPE will be a 'first shot hit', so i count on your support guys.

NO prob smile.gif, maybe, if the topic is going to go in the "SQL" or "ODBC" direction it would be advisabel to start a new topic, aptly titled. wink.gif

cheers.gif
jaclaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.