Sabtu, 13 September 2008

What is Info-ZIP?

From windows Commande Help

Info-ZIP is a group of C programmers, with the goal of offering a free ZIP packer and unpacker on as many platforms as possible. With their permission, we translated parts of their code to Turbo Pascal and integrated it into Windows Commander. The condition was that we did not charge additional fees for their code and that the source code is free (see below).

The Chief contributor to the unzipping code was Mark Adler. Special thanks go to him for making it available for free!

If you can access the Internet, you can get the original c code in

If you can access the Internet, you can get the original c code in

ftp://ftp.uu.net/pub/archiving/zip/... [MIRRORS THE INFO-ZIP HOME SITE]

or on some simtel.net mirrors. Our code will be available in the future on some Internet hosts (look for info-unz.dll).

The ZIP packer uses the ZLIB library by Jean-loup Gailly of info-zip. I didn't convert it to pascal, but put it in the DLL wcmzip16.dll. ZLIB is available at the same site on the Internet.

Free unzip source code in Turbo Pascal

If you are a Turbo Pascal programmer, you can get the source code to my unzipping unit free by proceeding as follows:

Send a formatted 3 1/2 inch-Disk and postage (international reply coupon: Europe CHF 2.-, Rest of the world CHF 3.-) to the following address:

C. Ghisler & Co.
P.O. Box
CH-3065 Bolligen
Switzerland

This offer is totally independent of Windows Commander. There is absolutely no obligation to buy! We can also e-mail you the source code for free.
Read More..

Jumat, 12 September 2008

Find files: Load/Save

From windows Commande Help

Load/Save

This page allows to save search parameters for frequent searches, e.g. a search for all *.bak files.


Field Meaning

Previous searches: Lists all saved search parameters. To re-do a search, click on an item in the list and press 'load'.

Load Load the selected search parameters and switch to the 'General' page.

Save Save the current search parameters

Delete Delete the selected search parameters.


Read More..

Kamis, 11 September 2008

Find files: Advanced

From windows Commande Help

Advanced

These advanced search options are only used in some special cases, for example if the date of a letter is known, but not its file name.

Field Meaning

Date between: These two fields allow to specify the period of time when the file was last modified. Only one or also both fields can be given.

Not older than: Allows to specify how old the file can be.

File size: Here you can search for files smaller or larger than a specific size

Attributes: Search for files with special attributes, like hidden, system, or for directories.

Duplicate file finder Searches the given directories for files which have the same name, size, and/or same contents. Only files occurring multipe times will be shown, grouped together by same files, and separated by a dashed line.
same name If checked, files will only be compared if they have the same name. If unchecked, the option 'same size' must be checked. Not checking 'same name' is useful to find e.g. identical backup copies.

same size If checked, files with the same size are considered to be identical.
same contents If files are found with identical size, they will also be checked for same content. Although this takes much longer, it ensures that the files are 100% identical.

If 'same name' is checked, the files will be sorted by name, otherwise by size, so identical files can be grouped together.
Read More..

Rabu, 10 September 2008

Find files: General

From windows Commande Help

General

This page allows to search for file names, parts of file names, and text inside files.


Field Meaning

Search for: In this field, you can enter the search mask for the files you want to find.
Examples:
*.ini finds for example win.ini
Smith finds "Letter to Mr. Smith.doc"
*.bak *.sik *.old finds all backup files with these extensions
*n.ini now finds names which must contain an 'n' in front of the dot.
New: w*.*|*.bak *.old finds files, which start with w and do not end with .bak or .old.

Search in: Here you can enter one or more starting directories, separated by ";".

Drives Selects the drive(s) you want to search. You can select multiple drives.

Only search in selected directories/files
Only search in directories and files selected in Windows Commander's active file window. This allows to include/exclude specific files and directories from the search.

Search archives Enables search in files with extension ZIP, ARJ, LZH, RAR, TAR, GZ, CAB and ACE. Text can even be searched in archives (now also in CAB)! The files are unpacked, searched and deleted on the fly.


Find text If this option is checked, you can enter text to be searched. With \t you find tabstops, and with \n line breaks (ENTER) in texts. To find a backslash \, you need to give it twice: \\ .

Whole words only Limits the search to whole words only.

Case sensitive Recognizes the case (small or big letters) of the word.

Example: Windows finds only "Windows", but not "WINDOWS"

ASCII-Charset (DOS) Special characters like the pound sign (£) are translated to their DOS equivalents (they have a different place in the DOS character set than in the Windows character set).
Find files NOT containing the text
Searches for all files which do not contain the given text, but still meet all other search criteria. Application: Multiple files need to be modified, and only the not yet modified should be shown.
Unicode Search in unicode files. In these, each letter is coded by 2 bytes. This format is used mainly on Windows NT and Windows 2000.
Hex Search for hexadecimal characters, e.g. 00 FF 12, or mixed, e.g. "PK"0102

Feed to listbox Transfers the files you found to the source file window, where they can be listed, copied or even deleted. This can only work when archives aren't searched.

go to file If you selected a file in the list of files you found, you can change to the directory of this file by pressing go to file. With F2 or Ctrl+R, you can go back to normal file display mode.

Start search: This button starts the search. It can be interrupted by pressing ESC or the Cancel button.

Cancel Interrupts the search process or closes the dialog box. The position of the dialog box is saved automatically when it is closed.
Read More..

Selasa, 09 September 2008

Command line: keys

From windows Commande Help

If Windows Commander is active, nearly all keyboard input is directed to the command line.
Here is the layout for some keys:

ENTER The command line is executed, if it contains at least one character (otherwise, the program under the cursor in the source window is started). If the command is cd, md or rd, it is executed internally. If it is an internal DOS command, DOS will be executed with this command. Otherwise, a program with the given name is executed.
SHIFT-ENTER Similar to ENTER, but with preceding command /c. After the called DOS program is terminated, its window is not automatically closed. This will only work if the file noclose.pif is in your Windows directory.
CTRL-ENTER The file under the cursor in the source directory is added to the end of the command line.
CTRL-SHIFT-ENTER The file under the cursor including its path is added to the end of the command line.

CTRL-CURSORDOWN
or ALT+F8 A list with the latest command lines (history-list) is opened. Hold down the CTRL key and use the up and down cursor keys to select an entry. By pressing the left or right key, you can edit the command line. This automatically closes the list.
TAB Puts the cursor back to the source directory.
Cursor keys Cursor left and cursor right move the cursor through the command line, even if the cursor was in the source directory before. If brief was selected, these keys move the cursor through the source directory. You then have to hold down SHIFT to move it inside the command line.
Cursor up and cursor down move the cursor bar inside the source window, even if it was inside the command line.
ESC, CTRL+Y Clears the command line.
CTRL+K Delete to end of line

CTRL+W Delete the word to the left of the cursor
CTRL+T Delete the word to the right of the cursor
Read More..

Senin, 08 September 2008

Field Meaning

From windows Commande Help

A menu file is a normal text file which describes the main menu. If you want to change the main menu by hand, you should save it with a different name, otherwise it will be overwritten with your next update!!!

Every submenu starts with the command POPUP, followed by the title of the submenu in double quotation marks ("). Popup Menus can have submenus themselves. In the title, a letter with a & in front of it will be underlined and can be jumped at with ALT+Letter. Example for a popup menu:

POPUP "&Files"

- A menu item is defined as follows: After the command MENUITEM follows the text of the item in double quotation marks, then a comma, and finally the identifier for the menu command. A list with all identifiers can be found in wincmd.inc. Windows Commander uses this file to translate identifiers to numbers. You should open this file with notepad and print if you plan to change the main menu. In the menu item text, the characters \t will be converted to a tabstop. Example for a menu item:

MENUITEM "&Pack...\tALT+F5", cm_PackFiles

- With the command MENUITEM SEPARATOR you can add a horizontal line.

- Every POPUP menu ends with the command END_POPUP. Example:

POPUP "&Files"
MENUITEM "&Change attributes...", cm_SetAttrib
MENUITEM "&Pack...\tALT+F5", cm_PackFiles
MENUITEM SEPARATOR
POPUP "&More commands"
MENUITEM "&Associate...", cm_associate
MENUITEM "&Calculate occupied space...", cm_GetFileSpace
END_POPUP
END_POPUP

Special commands:

- With the command STARTMENU you insert the menu Starter at the actual position in the main menu bar.

- With the command HELP_BREAK you insert a break in the main menu. After that break, all menus will be right adjusted. Note: STARTMENU cannot follow directly after HELP_BREAK!

Identifiers:

All identifiers start with the letters cm_ (abbr. for command). Identifiers which start with cm_src act upon the source directory. Identifiers with cm_left act on the left, with cm_right on the right directory window.

Only identifiers which are in wincmd.inc can be used! You can also directly specify the numbers given in wincmd.inc. However, the file wincmd.inc must be present at runtime if you want to use an external menu.
Read More..

Minggu, 07 September 2008

Dialog box: Change start menu / directory menu

From windows Commande Help

To move menu items to a different line, put the cursor bar on the desired entry, hold down the SHIFT key and move it using up and down arrow keys. You can also drag items using the mouse.

Field Meaning

Start menu: Shows the existing entries of the start menu. If you select an entry, the command line and parameters belonging to it are shown.

Add item... Creates a new entry in the start menu. Asks for a menu title first. A & sign causes the letter behind it to be underlined. Enter a single dash '-' to create a seperator line.

Add submenu... Creates a new submenu. Asks for a menu title first. Submenus are shown with a dash in front of the name. The end of the submenu is shown with two dashes.

Delete Item Deletes the selected menu entry. Choose CANCEL to cancel all changes.

Change Title... Changes the title of the menu entry.

Command: In this box you may specify the program to be run, including its search path. You can also specify fixed parameters here. Important: You must give the extensions .com and .bat, because by default Windows only finds .exe!
You can also choose one of Windows Commander's internal commands from the dropdown combobox. See 'change button bar' for all possible commands (except for changing the subbar).

>> Opens a dialog box to browse for the desired file name.

Start path: Determines the path to be set before the program is started. If no path is given, then the path of the source window is set.
Important: If the command (given in the command box) is cd drive:\directory, then the path given in this edit box is set in the other window! This allows to set both paths (source and target) at the same time.

Shortcut key: Here you can choose a shortcut key for the command.

Run iconic: Program will be started as an icon

OK Saves the changes made to the file wincmd.ini in the Windows directory.

Cancel Closes the dialog box without saving.

Help Opens Windows Help with this page.

Parameters: Here you can specify command line parameters.
Special parameters:
? as the first parameter causes a Dialog box to be displayed before starting the program, containing the following parameters. You can change the parameters before starting the program. You can even prevent the program's execution.
%P causes the source path to be inserted into the command line, including a backslash (\) at the end.
%N places the filename under the cursor into the command line.
%T inserts the current target path. Especially useful for packers.
%M places the current filename in the target directory into the command line.
%O places the current filename without extension into the command line.
%E places the current extension (without leading period) into the command line.
Note: %N and %M insert the long name, while %n and %m insert the DOS alias name (8.3). %P and %T insert the long path name, and %p and %t the short path name. (Same for %o and %e)
%% inserts the percent-sign.
%L, %l, %F, %f, %D, %d create a list file in the TEMP directory with the names of the selected files and directories, and appends the name of the list file to the command line. The list is deleted automatically when the called program quits. 6 types of list files can be created:
%L Long file names including the complete path, e.g. c:\Program Files\Long name.exe
%l (lowercase L) Short file names including the complete path, e.g. C:\PROGRA~1\LONGNA~1.EXE
%F Long file names without path, e.g. Long name.exe
%f Short file names without path, e.g. LONGNA~1.EXE
%D Short file names including the complete path, but using the DOS character set for accents.
%d Short file names without path, but using the DOS character set for accents.
Read More..