View Full Version : BM how to copy whole directories
anarchy2007
11-14-2005, 08:20 AM
Does anyone know hot to copy a whole directory from CD to MC0 in BM1.4?
I am trying to run MYPS2 and found that the folder MYPS2 with all the image files need to be copied to the same directory as the ELF file. How would one go about copying the whole MYPS2 folder to MC0:\BOOT\MYPS2\?
To get MYPS2 to work well and not freeze at main menu use this in the run script "LOADEXEC "EEELF" "moduleload" "-m rom0:SIO2MAN" "-m rom0:MCMAN" "mc0:/BOOT/MYPS2/MYPS2.ELF" Do not use XSIOMAN2... and XMCMAN...
Ruebeman
11-14-2005, 01:32 PM
Instead of solving this matter via PBAT script, you could also install UlaunchELF to your BootManager applications and manually copy the directory and its content from CD to memory card.
anarchy2007
11-15-2005, 02:53 AM
Yes, that is correct. That is how I test all the Apps that I use. The problem is that I give evry one of my customers a disk with the BootManager and a "Software disk" with HDL, USBAdvance, Keyl, PS2OS, etc.... so I need to have working scripts. The bigest problem is that even on the old CC forums not one of the admin every gave me any answers relating to scripting issues.
I eventually fixed the Keylauncher problem by installing keyl.elf and keyl.dat to the BEDATA-SYSTEM folder.
Personaly I think the CC is a great chip, but their support sucks the same way as when they where part of the DMS team.
anarchy2007
11-15-2005, 03:48 AM
Does anyone know hot to copy a whole directory from CD to MC0 in BM1.4?
I am trying to run MYPS2 and found that the folder MYPS2 with all the image files need to be copied to the same directory as the ELF file. How would one go about copying the whole MYPS2 folder to MC0:\BOOT\MYPS2\?
No need to worry, it seems that the folder is not needed changing the RUN script fixed the problem.
This is how to copy diffirent files to diffirent folders (PS2 media and USBD.IRX):
SET SRC "$PWD$"
SET DST "mc0:/BOOT/PS2RP"
_MKDIR "$DST$"
COPY "$SRC$\PS2RP.ELF" "$DST$/PS2RP.ELF"
COPY "$SRC$\REMOVE.PBT" "$DST$/REMOVE.PBT"
COPY "$SRC$\RUN.PBT" "$DST$/RUN.PBT"
SET SRC "$PWD$"
SET DST "mc0:/BEDATA-SYSTEM"
COPY "$SRC$\USBD.IRX" "$DST$/USBD.IRX"
How does one copy folders?
TheAgent
11-15-2005, 08:56 AM
sorry anarchy. BM does not have recursive copy support just yet. I think that's important too. There are some emulators that can use this. For now you have to make a script that includes all your images and media.
anarchy2007
11-16-2005, 03:12 AM
O.K thanks. I tried this and it works. It does take longer, but at least there is an alternative.
All files on BM disk are in the directory BMCD:\TEST\. After install files are MC0:\BOOT\TEST\MYELF.ELF + REMOVE + RUN, MC0:\BOOT:\TEST\FILES\TEST1.IRX + TEST2.DAT + TEST3.ROM + TEST4.ELF
INSTALIST.PBT:
SET SRC "$PWD$\TEST"
SET DST "mc0:/BOOT/TEST"
SET "TITLE" "TEST"
SET "VERSION" "v1.0"
SET "AUTHOR" "??"
SET "DESC" "SCRIPT TEST"
ADDINST "$TITLE$" "$VERSION$" "$AUTHOR$" "$DESC$" "$SRC$\INSTALL.PBT" "$DST$/REMOVE.PBT" "$DST$/RUN.PBT"
INSTALL.PBT:
SET SRC "$PWD$"
SET DST "mc0:/BOOT/TEST"
_MKDIR "$DST$"
COPY "$SRC$\MYELF.ELF" "$DST$/MYELF.ELF"
COPY "$SRC$\REMOVE.PBT" "$DST$/REMOVE.PBT"
COPY "$SRC$\RUN.PBT" "$DST$/RUN.PBT"
SET SRC "$PWD$"
SET DST "mc0:/BOOT/TEST/FILES"
_MKDIR "$DST$"
COPY "$SRC$\TEST1.IRX" "$DST$/TEST1.IRX"
COPY "$SRC$\TEST2.DAT" "$DST$/TEST2.DAT"
COPY "$SRC$\TEST3.ROM" "$DST$/TEST3.ROM"
COPY "$SRC$\TEST4.ELF" "$DST$/TEST4.ELF"
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.