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..

Sabtu, 06 September 2008

Packing / unpacking with Windows Commander

From windows Commande Help

Unpacking

Open the file to be unpacked in one of the file Windows (by double clicking on its filename). Change the path of the other file window to the destination where you want to put the files. In the source directory, choose the files you want to unpack. Press F5 (copy). This opens the dialog for unpacking files. To unpack all files, just press ALT+F9. Windows Commander has built-in unpackers for ZIP, ARJ, LZH, .RAR, .TAR, .GZ, .CAB and .ACE files.

Packing


Choose the files you want to pack. Then choose pack from the menu Files or press ALT+F5. A dialog will appear, where you can select options for packing the files. ENTER the desired file name for the archive you want to create. After you press ENTER, the files are packed to this file.

To move (pack & delete) the selected files, press SHIFT while pressing ALT+F5 or choosing pack from the menu.
Important: In the dialog box you must specify the name of the packer (zip, arj, lha, rar, uc2 or ace) and a colon in front of the file name, e.g. zip:c:\test.zip, otherwise the files will be copied/moved normally!!!

If you have configured Windows Commander to use the internal ZIP packer you can still use the external packer (pkzip or zip-nt): Instead of ZIP: place the string EXT: (for external) in front of the ZIP filename! You can also force the internal ZIP packer by specifying INT:.

Adding files to an existing archive


If you want to add files to an existing archive, proceed as follows: open the archive file in one file window. Select the files and directories you want to add in the other window. Press F5 to pack the selected files. This will again show the dialog for packing
, pressing ENTER starts the appropriate packer. TAR, GZ and CAB archives cannot be modified.

Pressing F6 will move (pack & delete) the selected files.


Restriction: You cannot add files to any subdirectory of an archive, except with the internal ZIP packer and with UC2. However, you can add whole directories with all their files. You can choose whether you want to save the packed files including their paths, or simply the files alone. To add files to a subdirectory with the internal packer or with Uc2 you must separate the subdirectory with a forward slash / , not a backslash!
Example: zip:c:\test.zip/this\is\a\subdir

Deleting files from an archive

Open the archive you want to delete files from by double clicking on it. Select the files and/or directories you want to delete and press F8 to delete them.

List files from an archive

To show files with the built-in or external lister, just press F3. After a warning dialog box, the file is unpacked and then shown. After you close the lister, the temporary file is deleted though the original archive is not affected.

Edit files from an archive

To edit a file with the editor of your choice, just press F4. The file is then automatically unpacked and will be repacked into the archive if it was changed with the editor. Repacking will NOT work to TAR, GZ and CAB archives! Instead, the modified file will not be deleted and remain in the temporary directory.

To edit a file with its associated program, press ENTER, then select Unpack and Execute. The file is then automatically unpacked. It can also be repacked if it was changed.
Read More..

Jumat, 05 September 2008

Using Windows Commander as an archiver shell

From windows Commande Help

Windows Commander can work with packed files as if they were directories. This means that you can double click (or press ENTER) on such an archive, and Windows Commander will show the contents of this file. All files packed into the archive are shown in a normal file window.


If a file was packed into the archive together with its path, the relevant directories are shown as normal directories. You can navigate in these directories as normal and unpack any files and even complete directories. If you want to know more about a packed file, just press ENTER to show details like full path, compression method and ratio.

Windows Commander can now also open archives in archives! To unpack an archive to a temporary directory, just press ENTER on that archive. If the archive has an unusual extension, or is a self extracting archive, you must press CTRL+PgDn instead. When you leave the archive by switching to its parent directory, or by switching to a different drive, the archive will be automatically deleted from the temporary directory.
Read More..

Kamis, 04 September 2008

Self extracting archives

From windows Commande Help

Windows Commander also supports self extracting archives with EXE or COM extension. To open such an archive, place the cursor on the file and press CTRL+PgDn. To create a self extracting ZIP archive, rename a ZIP file to an EXE file. Windows Commander will then ask if you want to create a self extracting ZIP archive.
How to produce archives?

To pack and unpack files, you need special pack programs like pkzip.exe, pkunzip.exe, arj.exe, lha.exe, rar.exe, uc.exe
and ace.exe. Windows Commander can act as a shell for these programs. Additionally Windows Commander contains a Pkzip-compatible internal packer, which supports nearly all functions of pkzip, even the creation of multi-volume ZIP files! Only the encryption isn't supported because of the restrictive US export laws. The packer is based on Zlib by Jean-loup Gailly. The C source is freely available at the following ftp address on the Internet: ftp://ftp.uu.net/pub/archiving/zip

.TAR, .GZ and .CAB archives can only be unpacked, NOT created by Windows Commander.


Read More..

Rabu, 03 September 2008

Working with archives (ZIP, ARJ, LZH, RAR, UC2, CAB, ACE)

From windows Commande Help

Important note:

Most packers do NOT support Win95/98 and WinNT long filenames! Exceptions are the internal ZIP packer built into Windows Commander, Zip-NT (ftp://ftp.uu.net/pub/archiving/zip/) and very new versions of UC2, RAR, LHA and ACE. If possible always use the internal ZIP packer! In this version Windows Commander checks the created archive directly after packing to ensure that it isn't defective. This can be disabled by adding the line VerifyZip=0 to the section [Packer] in wincmd.ini.

What are archives?

Archives (packed files) are normal files with the extensions .ZIP, .ARJ, .LZH, .RAR, .UC2, .CAB, .ACE. Such files contain other files in a compressed form, which takes up less disk space than uncompressed files. To access these files, they have first to be uncompressed. Files with extension .TAR come from the UNIX world - they are usually packed into a GZIP file (ending with .GZ). They cannot be modified with Windows Commander. The CAB archive format is used by Microsoft for installation programs. CAB archives can only be unpacked by Windows Commander. CAB files are only supported by the 32 bit version.
Read More..

Selasa, 02 September 2008

F8: Delete

From windows Commande Help

Select the files and/or directories you want to delete, then press F8.

After confirmation, the files are deleted. The process can be interrupted at any time with the Cancel dialog. For each non-empty directory, an additional dialog box will ask for confirmation. Warning: All files AND DIRECTORIES in that directory will be deleted. You could use Microsoft Undelete to recover those files (only on Windows 3.1(1)).

On Windows 95/98/NT, the files are automatically moved to the 'Recycle Bin'. You can double click the Recycle Bin on the Desktop to restore these files or to remove them completely. You can also choose in Recycle Bin how much space the deleted files can take, and also if you don't want to use Recycle Bin at all. If you want to delete files without moving them to recycle bin, you can hold down the SHIFT key while pressing F8 or DEL. You can disable the use of Recycle Bin in Windows Commander by making a change to Wincmd.ini, key UseTrash.

If the source directory shows the contents of an archive, the corresponding packer is started to delete the files. The files are deleted directly without moving them to Recycle Bin.

In the 32-bit version, the delete operation can be moved to the background by pressing the 'Background' button during the delete operation.
Read More..

Senin, 01 September 2008

F6: Rename / Move

From windows Commande Help

This command permits the renaming of files and whole directories in the source directory, and can be used to move them to different directories or even to different drives. You can also move (pack & delete) files into archives.

Select the files and/or directories you want to rename or move, then press F6. If you only want to rename a file in place, press SHIFT+F6 instead. This will open an inplace edit window around the file to be renamed. Important: You must press ENTER to confirm that you want to rename the file. Clicking outside the inplace edit window will cancel the operation. If you don't like getting the inplace rename window when clicking on the same file twice, add the string InplaceRename=0 to the [Configuration] section in wincmd.ini. When renaming a ZIP file to an EXE file, Windows Commander will ask if you want to create a self extracting ZIP archive. If you choose 'yes', the EXE file will be converted.

F6 opens a dialog box where you can type the target path and a file mask. As a default, the path of the target window is presented. If you do not specify a target directory, the source directory is assumed, i.e. you rename the files. If you do not specify a file mask, the file name is not changed. Additionally, you can choose the target directory with the directory tree by pressing the tree button. See also copy (F5).

SHIFT+F6 with multiple selected files opens a dialog box which allows to specify wildcards (* and ?) to rename multiple files. New: You can select the option Rename each file separately, then you will be asked for a new name for each file separately.

If the source directory shows the contents of an archive, this function is unavailable. Exception: You can rename single files/dirs with Shift+F6 inside ZIP files.
Read More..