View Single Post
  #1 (permalink)  
Old 10-13-2009, 01:15 PM
raidzero's Avatar
raidzero
N00b
Offline
Location: PPCG
 
Join Date: Dec 2008
Posts: 2,193
Reputation: 5220
raidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the communityraidzero is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to raidzero
VK to old SYS converter batch

This is used to convert VK style SYS layouts to work with the older buildOS or as I prefer, platformrebuilder. Its kind of a like a very simple reverse dumpsorter. It ignores skip files so you don't need to worry about deleting _skip files when you copy the files into the kitchen This will be in the TOOLS directory of the next kitchen release also. To use it just copy the batch file into the directory containing DPI_192, DPI_192-RESH480_RESV640 and SHARED, then just run it. It will rearrange it all into one folder called OLDSTYLE, then just create a new folder in my kitchen's SYS directory with the build number and paste the contents of OLDSTYLE in there.

I will probably make it easier to use later but for now it gets the job done!

if you want to know what the script contains, its really simple:

Code:
@ECHO OFF
echo Please wait, converting. Window will close when finished.
mkdir OLDSTYLE
echo _skip > skipfiles
xcopy DPI_192\0409 OLDSTYLE /D /H /E /C /Y /Q /EXCLUDE:skipfiles
xcopy DPI_192\COMMON OLDSTYLE /D /H /E /C /Y /Q /EXCLUDE:skipfiles
xcopy DPI_192_RESH_480_RESV_640\0409 OLDSTYLE /D /H /E /C /Y /Q /EXCLUDE:skipfiles
xcopy DPI_192_RESH_480_RESV_640\COMMON OLDSTYLE /D /H /E /C /Y /Q /EXCLUDE:skipfiles
xcopy SHARED\0409 OLDSTYLE /D /H /E /C /Y /Q /EXCLUDE:skipfiles
xcopy SHARED\COMMON OLDSTYLE /D /H /E /C /Y /Q /EXCLUDE:skipfiles
del skipfiles
Explanation:
@ECHO OFF - hides the commands themselves as they are executed, change it to ECHO ON to see the difference
echo text - just displays text in the window for the user to read
mkdir OLDSTYLE - create directory called oldstyle
echo _skip > skipfiles - makes a new file called skipfiles with the contents _skip
xcopy DIRECTORY /D /H /E /C /Y /Q /EXCLUDE:skipfiles : copies files, /D means include directories /H means include system files, /E means copy all subdirectories, /C means ignore errors (there won't be any as long as your VK SYS directory is formatted correctly), /Y means overwrite if necessary, /Q means quiet (dont show every file on the screen as it copies), /EXLCUDE is the file that contains a list of files to NOT copy, in our case this file is created by the eco _skip > skipfiles line, the file it uses for ignores is skipfiles and there is only one line in it, so it only ignores _skip files.
and finaly, del _skipfiles just deletes the file called skipfiles since it is no longer necessary

this was originally posted in my rom/kitchen thread so forgive me if it is a bit too hand-holding of an explanation..

edit: oops, forgot the attachment
Attached Files
File Type: rar CONVERT_SYS.rar (300 Bytes, 4 views) Click for barcode!
__________________

Last edited by raidzero; 10-13-2009 at 01:18 PM.
This post has been thanked 1 times.