Vegas SFK Files

For the discussion of Perl, Python, Ruby, and PHP and other interpreted languages.

Vegas SFK Files

Post by jadecook on Tue Aug 21, 2012 3:14 pm
([msg=68882]see Vegas SFK Files[/msg])

So every time I create a project in Sony Vegas I always end up with a ton of SFK files after, and I always have to go through my HD and delete them. I always wished there was a quick script that could I could run to delete all SFK files off of my HD, so that's what I made. Here's the code:

Code: Select all
:: Written By Jade Cook
:: 8/21/2012

@ECHO off
COLOR c0
TITLE SFK FILE CLEARER
GOTO deleteinfo

:deleteinfo
DEL /f InfoFromDeletionIfNeeded.txt
cls
GOTO start

:start
ECHO.
ECHO ABOUT TO WIPE HD OF ALL *.SFK FILES
ECHO.
ECHO YOUTUBE.COM/JADEALLENCOOK
ECHO.
PAUSE
GOTO process

:process
CLS
DEL /s *.sfk >> InfoFromDeletionIfNeeded.txt
CLS
ECHO SUCCESS!
PAUSE
GOTO exit

:exit
EXIT /B


If you have no idea how batch programs work, it's pretty easy. Just follow these steps;

1. Copy code
2. Open notepad
3. Paste code in notepad
4. Save as "sfkcleaner.bat" (or anything that you want, just as long as it ends in ".bat")
5. Open file (should look like gears, if it doesn't, erase the "txt" off the end of the name)
Last edited by jadecook on Tue Aug 21, 2012 3:44 pm, edited 2 times in total.
User avatar
jadecook
Experienced User
Experienced User
 
Posts: 77
Joined: Fri Aug 17, 2012 2:20 pm
Blog: View Blog (0)


Re: Vegas SFK Files

Post by WallShadow on Tue Aug 21, 2012 3:36 pm
([msg=68883]see Re: Vegas SFK Files[/msg])

Good job on the script, try distributing it on youtube, I bet you're not the only one with this problem. One thing that I will comment on is that you should use 'EXIT /B' instead of 'EXIT' because if you use this script inside another such as;

Code: Select all
@ECHO OFF

CALL sfkcleaner.bat

:: do whatever else

PAUSE



if you use 'EXIT' in sfkcleaner.bat, it will kill both batch scripts, itself and the one that called it. but if you use 'EXIT /B', it will only kill sfkcleaner.bat but the script that called it can still keep working properly.
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: Vegas SFK Files

Post by jadecook on Tue Aug 21, 2012 3:46 pm
([msg=68885]see Re: Vegas SFK Files[/msg])

Ah, thanks WallShadow! I would of never even thought of that, I just updated the script!
User avatar
jadecook
Experienced User
Experienced User
 
Posts: 77
Joined: Fri Aug 17, 2012 2:20 pm
Blog: View Blog (0)



Return to Interpreted Languages

Who is online

Users browsing this forum: No registered users and 0 guests