View Single Post
  #217 (permalink)  
Old 10-11-2009, 02:14 PM
raidzero's Avatar
raidzero
N00b
Offline
Threadstarter
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
Re: [ROMs][KITCHEN]->>Oct 9<<-WM 6.5 NK-All Carriers-RZ Baseline 3.2 released!

hey guys I whipped up a script to make it even easier to convert visual style SYS files to work with my kitchen. (or buildos) It ignores skip files so you don't need to worry about deleting _skip files when you copy the files into my 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

enjoy
Attached Files
File Type: rar CONVERT_SYS.rar (300 Bytes, 0 views) Click for barcode!
__________________

Last edited by raidzero; 10-11-2009 at 02:26 PM.
Reply With Quote
This post has been thanked 1 times.