Tuesday, 23 July 2013

Delete Directory and Contents using DOS Command Prompt

Open Command Prompt and enter the following, replacing path between quotes with path to folder to delete.
RD /S /Q "C:\Users\UserName\Desktop\Folder"
Switches:
/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

Thursday, 25 April 2013

Enable Table Controls in FCKeditor on OpenCart

ckeditor config js location:
admin/view/javascript/ckeditor/config.js

Change 

['Image','Table','HorizontalRule']
 


To

['Image','Table','HorizontalRule','Format']

Sunday, 3 February 2013

How to duplicate a row in MySQL

INSERT INTO table_name (field_name1, field_name2, field_name3, field_name4) SELECT field_name1, field_name2, field_name3, field_name4 FROM table_name WHERE id = 87

INSERT INTO table_name (field_name) SELECT field_name FROM table_name WHERE id = 87