2012/06/26

How to delete all files and folders in a directory

I am a frequent member in several forums and spend at least 2 hours on them everyday. Recently I have seen most friends ask the same question:”How do I delete a directory with all the files and folders in it?” I want to explain how to delete all files and folders in a directory here.


Step 1 Define a folder which you want to delete.
<cfset tDirectory = "C:\myFolder\"> <!--- this can be passed in a varaible or whatever --->

Step 2 Take advantage of Windows ODS command RMDIR.
We need to create a string which we will writeinto a .bat file. .bat file is sued to be executed in Windows later down in this article.

<cfset tString ="RMDIR /S /Q " & tDirectory> <!--- This is what we will put in the bat file --->

What? You do not know RMDIR? Donot worry. Let me explain it to you. RMDIR is a built-in command in Windows operating system, and it is usually used to do what we need by DOS. It will delete a directory as well as all directories, files and folders under the directory. Click “Start” > “Run” > type in cmd > press Enter key. You will enter the Dos window. Then type in rmdir/?. You will get the following attributes:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\pvarando>rmdir /?

Removes (deletes) a directory.

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.

/Q Quiet mode, do not ask if ok to remove a directory tree with /S



Step 3 Create the .bat file.
<!--- generate a .BAT file for later execution --->
<cffile action="WRITE" file="#expandPath(".")#\delete.bat" output="#tString#">

Step 4 Execute it with ColdFusion.
<!--- Now execute the file to delete everything (Folder and all sub-folders and files)--->
<cfexecute name="#expandPath(".")#\delete.bat" timeout="60"></cfexecute>

Step 5 To clean things up, let’s delete the .bat file (optional).
<!--- now delete the bat file --->
<cffile action="DELETE" file="#expandPath(".")#\delete.bat">

That’s it.

2012/06/20

How to Play VCD and SVCD with DVD X Player?

A VCD can store about 70 minutes video, while SVCD can hold much higher video quality, especially much more sharp picture than VCD because of the higher resolution, but only can store 45-60 minutes video and far from all DVD players can play SVCD.
Besides playing DVD, DVD X Player also has the ability to play VCD and SVCD. This basic article will explain how to play VCD and SVCD with DVD X Player.

Play VCD and SVCD Guide

Step 1. Startup DVD X Player

Make sure you have installed the program on your computer. If not, just download slo it and install it by following the wizard. DVD X Player has a blue & black interface which looks very decent.

Step 2. Insert the VCD or SVCD into the drive

Step 3. Start to play

The movie menu will show on the interface, you can choose the one you want to see by mouse clicks.

Step 4. Control Playback

VCD and SVCD have to navigation functions. You can use the main panel and subpanel to browse the contents and control the playback. If the disc support, you can even choose to play “Previous” or “Next” chapter by clicking the two neighbor buttons of “Play”.
main & sub panel

2012/06/05

How to Get More Votes to Win More Free Software?

Have you participated CloneDVD’s The Most Classic Movie Competition? Want to get more votes to win some more free software? There are many ways that you can share the news with your friends and let them vote for you.

By Facebook

  • 1. Copy the URL of your submitted movie.
  • copy the URL
  • 2. Paste the URL on Facebook, write a comment and post.
  • share on Facebook
  • 3. Create an event and invite your friends to vote for you.
  • creat an event on Facebook

By Twitter

Push the link and text on Twitter to let your friends know it and vote for you.
push on Twiiter

By E-mail

Forward the e-mail to inform your friends that you have participated the competition and ask them to vote.

Other Ways

You probably have many other social accesses. Just make it exposed, thus you can get more votes.
In which way to get votes is up to you. Lots of freebies are waiting for you: DVD copy software, DVD decrypter, DVD converters, video converter, mobile tools and more. Hurry up!

Classic Forever - Win Freebies in CloneDVD’s The Most Classic Movie Competition

June 1, 2012 – Aviosoft, Inc launched The Most Classic Movie Competition in the theme of “Classics Forever” on clonedvd, with the awards of free software. The competition is open worldwide, and will last for a month. People who like films just tell us the name of the most classic movie in your heart, and then ask your friends to vote for you. As long as the more votes you get, the more freebies you will win.
Classics never fade. They have transcended time and trends, with indefinable quality. Classic movies are often universal favorites that hold up after repeated rescreening. Classics are renowned films of first rank, reference points in film mythology.
Clonedvd.net provides the best DVD copy, DVD decrypter, DVD ripper software since 2003. Its signature product CloneDVD is especially designed for movie funs to copy, burn DVD movies. Use CloneDVD to backup those classic DVD movies, let classics live forever.
How to Participate This Competition?
1.      Just fill the information including your name, e-mail, a movie name, and the reason why you think it is classic.
2.      Go to your e-mail box to confirm the submission, and then share it with your friends to let them vote.
3.      People who don’t feel like submitting a movie name can also vote for others’, just for you guys have the same favorites, similar feelings. A resonance of the souls is exciting.
1 vote equals to 10 cents. Your earnings can be used to purchase any product on our site. There are many DVD tools and video converters which will definitely expand your digital enjoyment. The competition will be closed on June 30, 2012. Come join us! Now!

About Aviosoft
Aviosoft Inc. has been one of the leading multimedia software companies since 2003, which mainly creates and develops DVD copy, DVD playback, video conversion and editing programs for better enjoying video, audio and pictures on computers and popular portable devices.
Links:
Company Website: http://www.clonedvd.net/
The Most Classic Movie Competition: http://www.clonedvd.net/promotion/classic-movie.php
Contact:
Marketing Department, Aviosoft, Inc.
marketing@clonedvd.net

Happy Father's Day

happy father's day

Get 20% OFF on ALL PRODUCTS at blazevideo.com


Until June 22, 2012, give your DAD the best gift on this Father’s Day:
  1. Promotion page: http://www.blazevideo.com/promotion/father-day.html
  2. Coupon code:  BlazeF
  3. Related products: DVD player, DVD converter, video converter, video editor, HDTV player, video or photo online sharing tool, DVD copy software and more