Jump to content

Does My Bat Script Look Like It Will Work?


hsncorrosion
 Share

Recommended Posts

I made this on my own so it's probably messy as it is the first I've done of this size. I don't work alot with bat scripts.

I just want you guys to tell me if this script looks like it will work properly with the files it needs.

I would try it myself but I don't have my psp atm and cannot test it without one. Just tell me if it looks like it was coded right.

This script is supposed to do what is in this readme file:

    *extract the file into your desktop:

    *Open README 1st folder

    *highlight and copy MSINST and MSPFORMAT FOLDER

    *open My Computer

    *Left Click the C: drive once (Note: if you double click, it will open C: drive)

    *Now RIGHT Click on C: drive and PASTE

    ==============

    *now you need to ENABLE USB MODE on psp

    *make note of the psp drive letter

    ==============

    *Open Cmd window ( Start > RUN > CMD )

    *Type in the following command "CD C:" (note: with-out quote mark) HIT enter

    *it should take you to -----> C:>

    *type the following command "mspformatmspformat.exe X" ( where X=psp drive letter) note: NO quotation

    *Press Y to continue

    *it should say "Drive succesfully formatted, and partition moved."

    *disable USB mode

    *remove the memory stick and re-insert back

    *re-enable USB mode

    *Now go back to the Desktop where you extracted those file earlier

    *Choose the Pandora Folder you want to make ( original(phat) or despertar(slim)

    *Once you choose the folder you want dbl click and open it

    *Select all and COPY

    *open the psp memory stick and PASTE

    *go back to CMD window.

    *type the following command "msinstmsinst.exe X msinstmsipl.bin" (again where X=psp drive letter) note: NO quotation

    *It should ask you " Are You Sure ? [Y]

    *Press Y and Hit ENTER

    *The last line should say " Write MS BOOT CODE "

thats it your done..

@echo off
:A
Cls
echo PSP Automated MMS Maker
echo I WILL NOT BE HELD RESPONABLE IF YOU BRICK YOUR PSP
Pause
Goto A
:A
Cls
echo This script was created to allow you to
echo create a magic memory stick for your psp
echo You must have a pandora battery to use this.
Pause
Goto B
:B
Cls
echo Copy the msinst and mspformat folders to drive C
Pause
Goto C
:C
Cls
echo Enable USB mode and
echo enter your psp drive letter below
set /p d=PSP Drive Letter:
C:mspformatmspformat.exe %d%
Pause
Goto D
:D
Cls
echo Disable USB mode on your psp
Pause
Goto E
:E
Cls
echo Remove your memory stick
Pause
Goto F
:F
Cls
echo Put it back in
echo Then re-enable usb mode
Pause
Goto G
:G
Cls
echo Copy the contents of the folder for your psp - Slim or
echo phat folder depending on which your going to use it on, to your psp.
Pause
Goto H
:H
Cls
echo Now enter your psp drive letter below
set /p d2=PSP Drive Letter:
C:msinstmsinst.exe %d2% msinstmsipl.bin
Pause
Goto I
:I
Cls
echo You have succesfuly created a magic memory stick
Pause
exit

Link to comment
Share on other sites

screw it I'm just going to redo the whole thing for you

@echo off
cls
echo PSP Automated MMS Maker
echo I WILL NOT BE HELD RESPONABLE IF YOU BRICK YOUR PSP
pause > nul
cls
echo This script was created to allow you to create a magic memory
echo  stick for your psp, you must have a pandora battery to use this.
pause > nul
echo.
echo Make sure the the msinst and mspformat folders at located in C:magicPSP
pause > nul
echo. 
echo Enable USB mode and enter your psp drive letter below...
set /p d=PSP Drive Letter:
C:magicPSPmspformatmspformat.exe %d%
pause > nul
echo.
echo Now disable USB mode on your psp...
pause > nul
echo.
echo Remove your memory stick...
pause
echo.
echo Put it back in, and hen re-enable usb mode...
pause > nul
echo.
echo Copy the contents of the folder for your psp - Slim or phat folder 
echo depending on which your going to use it on, to your psp.
pause > nul
echo.
echo Now enter your psp drive letter.
set /p d2=PSP Drive Letter:
C:magicPSPmsinstmsinst.exe %d2%msinstmsipl.bin
echo If everything worked, you have successfully created a magic memory stick!
echo YAY you!
pause > nul

Link to comment
Share on other sites

How can I make it so it will do this.

When I get to

echo Copy the contents of the folder for your psp - Slim or
echo phat folder depending on which your going to use it on, to your psp.

How can I have it so that it will prompt you if you want to use slim or phat as well as the drive letter of the psp.

Then copy the contents of the folder to that drive?

This would be much easier on the user

Link to comment
Share on other sites

First of all, you don't need to CLS the screen because it's already clear, second, you don't need to have :labels because the script doesn't need flow control, it's just executed one line after the other to the bottom of the script.

I don't know what slim or phat is, but use set /p.

Link to comment
Share on other sites

I understand how /p woks

But I am not quite sure on how to make that work for my purpose.

I was thinking having a prompt like this....

If you have a slim enter "s" below, If you have a phat enter "p" below.

What psp do you have:

then it would prompt again for the drive to copy to

What is your psp drive letter:

Then copy all the correct files to the psp.

I can try myself although I've never done it like this, if you could at least give me an example?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...