* bin/commit.hb
* config/detect.mk
* config/detfun.mk
* config/detplat.mk
* config/dir.mk
* config/dirsh.mk
* config/global.mk
* config/globsh.mk
* config/instsh.mk
* config/lang.hb
* config/lang2po.hb
* config/po2lang.hb
* config/postinst.hb
* contrib/hbexpat/tests/tohash.prg
* contrib/hbformat/utils/hbformat.ini
* contrib/hbmisc/hbedit.prg
* contrib/hbmxml/tests/testmxml.prg
* contrib/hbnetio/utils/hbnetio/_console.prg
* contrib/hbnetio/utils/hbnetio/_winsvc.prg
* contrib/hbnetio/utils/hbnetio/hbnetio.prg
* contrib/hbnetio/utils/hbnetio/netiomgm.hb
* contrib/hbwin/tests/ole.prg
* contrib/hbwin/tests/oletst2.js
* contrib/hbwin/tests/oletst2.vbs
* contrib/hbxpp/doc/en/binnumx.txt
* contrib/hbxpp/doc/en/dbcmdx.txt
* contrib/xhb/htmutil.prg
* contrib/xhb/tfile.prg
* contrib/xhb/tframe.prg
* contrib/xhb/thtm.prg
* ChangeLog.txt
* debian/copyright
* doc/class_tp.txt
* doc/hdr_tpl.txt
* doc/xhb-diff.txt
* LICENSE.txt
* package/harbour-wce.spec.in
* package/harbour-win.spec.in
* package/harbour.spec
* package/mpkg_rpm_wce.sh
* package/mpkg_rpm_win.sh
* package/mpkg_rpm.sh
* package/mpkg_src.sh
* package/mpkg_ver.sh
* src/rtl/achoice.prg
* src/rtl/getsys53.prg
* src/rtl/tgetlist.prg
* src/rtl/tlabel.prg
* src/rtl/tmenusys.prg
* tests/hbdoc.prg
* tests/langmsg.prg
* tests/rto_get.prg
* tests/rto_tb.prg
+ doc/en/ati.txt
+ doc/en/dirdrive.txt
+ doc/en/hashfunc.txt
+ doc/en/hbtoken.txt
+ doc/en/left.txt
+ doc/en/proc.txt
+ doc/en/strtran.txt
+ doc/en/transfrm.txt
+ doc/en/typefile.txt
* doc/en/*
* more partial sync with 3.4 fork
168 lines
4.2 KiB
Plaintext
168 lines
4.2 KiB
Plaintext
/* $DOC$
|
|
$AUTHOR$
|
|
Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
DirRemove()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
FileSys
|
|
$ONELINER$
|
|
Attempt to remove an directory
|
|
$SYNTAX$
|
|
DirRemove( <cDirectory> ) --> nError
|
|
$ARGUMENTS$
|
|
<cDirectory> The name of the directory you want to remove.
|
|
$RETURNS$
|
|
<nError> 0 if directory was successfully removed, otherwise
|
|
the number of the last error.
|
|
$DESCRIPTION$
|
|
This function attempt to remove the specified directory in <cDirectory>
|
|
If this function fails, it will return the last OS error code number.
|
|
See FError() function for the description of the error.
|
|
$EXAMPLES$
|
|
LOCAL cDir
|
|
IF DirRemove( cDir := hb_DirSepToOS( "./mydir" ) ) == 0
|
|
? "Removing directory", cDir, "was successful"
|
|
ENDIF
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C53
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
MakeDir(), DirChange(), IsDisk(), DiskChange(), DiskName(), FError()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$AUTHOR$
|
|
Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
DirChange()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
FileSys
|
|
$ONELINER$
|
|
Changes the directory
|
|
$SYNTAX$
|
|
DirChange( <cDirectory> ) --> nError
|
|
$ARGUMENTS$
|
|
<cDirectory> The name of the directory you want do change into.
|
|
$RETURNS$
|
|
<nError> 0 if directory was successfully changed, otherwise
|
|
the number of the last error.
|
|
$DESCRIPTION$
|
|
This function attempt to change the current directory to the one
|
|
specified in <cDirectory>. If this function fails, it will return
|
|
the last OS error code number. See FError() function for the
|
|
description of the error.
|
|
$EXAMPLES$
|
|
IF DirChange( hb_DirSepToOS( "./mydir" ) ) == 0
|
|
? "Change to directory was successful"
|
|
ENDIF
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C53
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
MakeDir(), DirRemove(), IsDisk(), DiskChange(), DiskName(), FError()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$AUTHOR$
|
|
Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
MakeDir()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
FileSys
|
|
$ONELINER$
|
|
Create a new directory
|
|
$SYNTAX$
|
|
MakeDir( <cDirectory> ) --> nError
|
|
$ARGUMENTS$
|
|
<cDirectory> The name of the directory you want to create.
|
|
$RETURNS$
|
|
<nError> 0 if directory was successfully created, otherwise
|
|
the number of the last error.
|
|
$DESCRIPTION$
|
|
This function attempt to create a new directory with the name contained
|
|
in <cDirectory>. If this function fails, it will return the last OS
|
|
error code number. See FError() function for the description of the
|
|
error
|
|
$EXAMPLES$
|
|
LOCAL cDir
|
|
IF MakeDir( cDir := hb_DirSepToOS( "./mydir" ) ) == 0
|
|
? "Directory", cDir, "successfully created"
|
|
ENDIF
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C53
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
DirChange(), DirRemove(), IsDisk(), DiskChange(), DiskName(), FError()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$AUTHOR$
|
|
Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
IsDisk()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
FileSys
|
|
$ONELINER$
|
|
Verify if a drive is ready
|
|
$SYNTAX$
|
|
IsDisk( <cDrive> ) --> lSuccess
|
|
$ARGUMENTS$
|
|
<cDrive> An valid drive letter
|
|
$RETURNS$
|
|
<lSuccess> .T. is the drive is ready, otherwise .F.
|
|
$DESCRIPTION$
|
|
This function attempts to access a drive. If the access to the drive
|
|
was successful, it will return true (.T.), otherwise false (.F.). This
|
|
function is useful for backup function, so you can determine if the
|
|
drive that will receive the backup data is ready or not.
|
|
$EXAMPLES$
|
|
IF IsDisk( "A" )
|
|
? "Drive is ready"
|
|
ENDIF
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C53
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
DirChange(), MakeDir(), DirRemove(), DiskChange(), DiskName()
|
|
$END$
|
|
*/
|