home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 June B
/
Pcwk6b98.iso
/
Sharew31
/
Still31
/
CDD.TXT
< prev
next >
Wrap
Text File
|
1996-01-23
|
1KB
|
30 lines
Cdd is a directory changer you may find handy when working with drag/drop.
The command
cdd path
changes to the drive and directory specified by path (Dos cd does not
handle drive changes). If path is a file name, cdd will change to
the directory containing the file. For example,
cdd d:\test\myfile.txt
changes to drive d:, directory test (assuming myfile.txt is a file).
You can use cdd to quickly virus check the contents of zipped files.
First, unzip files from File Manager, eg by putting the zip in a temporary
directory and then double clicking on it. (Associate .zip with
a pif which runs pkunzip.exe in a window). Then drag/drop any file
from the unzipped package onto a button which you have configured to run
a virus scanner as follows.
Create a pif file containing the command c:\ut\b\checkvir.bat.
The batch file checkvir.bat contains these commands:
cdd %1
c:\f-prot\f-prot *.*
Assign this pif file to a Stiletto button. Now drag/drop any file
from the zipped package onto the button, and the virus checker -- f-prot
-- gets run on the directory containing the file.
The files cdd.exe and cdd.txt are in the public domain.