Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 29th, 2004, 06:42 PM
Webbywarehouse's Avatar
Webbywarehouse Webbywarehouse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 53 Webbywarehouse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 40 m 15 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old January 30th, 2004, 01:25 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 2 Weeks 2 m 8 sec
Reputation Power: 92
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

Reply With Quote
  #3  
Old January 30th, 2004, 02:49 PM
Webbywarehouse's Avatar
Webbywarehouse Webbywarehouse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 53 Webbywarehouse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 40 m 15 sec
Reputation Power: 6
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:
 xcopy "C:\*.dll" D: ////y
xcopy 
"C:\*.exe" D: ////


So basically I can use the command line (DOS) commands in .bat files?

Thank you again.

- Brian

Reply With Quote
  #4  
Old January 30th, 2004, 03:09 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 2 Weeks 2 m 8 sec
Reputation Power: 92
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > loading programs into RAM disk at boot up


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT