|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
loading programs into RAM disk at boot up
I have a server that I just set up a RAM Disk at boot up, gave it a mere 32 megs, all it needs I think.
I want to know how I could then automatially copy several files to the RAM Disk at boot up so that when the server calls to the RAM Disk for the executibles it needs, that they will be there. I run a Sambar 6.x server, using PHP to call Image Magick executibles form within PHP code. This is on an XP (cough cough HOME edition) set up. PHP is ISAPI. I know virtually nothing about .bat files, setting up customized automated functions at boot up on my XP machine. Any help is appreciated. - Brian
__________________
- Brian |
|
#2
|
||||
|
||||
|
Hi,
If you simply need to copy a set of files onto one drive open Notepad and type something like this: xcopy "C:\MyFiles" D: /i /s /e /y (if you files are stored in C:\MyFiles and your RAM drive is D ![]() Then click file save and type something like "copy.bat" (including quotes) and select the option for all file types. Save the file and then copy it to the startup folder (something like C:\Documents and Settings\All Users\Start Menu\Programs\Startup) HTH, Edwin |
|
#3
|
||||
|
||||
|
Thank you.
Thank you for that little bit. I have never used a .bat file from Windows so that was what I was not sure about.
This should then work to move all of the .dll's and executibles. PHP Code:
So basically I can use the command line (DOS) commands in .bat files? Thank you again. - Brian |
|
#4
|
||||
|
||||
|
Yes, that's pretty much right.
When a bat file is run, a command prompt is opened, and the commands are run in the command prompt. However, it's not true DOS, just Windows version, which is called the command prompt. The script you show should just work with dlls and exe files, but you may find that you need C:\*.exe (including the backslash). If you want to learn more, click the Help and Support button on the start menu. Search for "command line a to z" and open the file Command-line reference A-Z. This will show you what you can do with the command prompt. Many functions also include examples. HTH, Edwin Last edited by edwinbrains : January 30th, 2004 at 03:12 PM. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Windows Help > loading programs into RAM disk at boot up |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|