Changes

File System + File I/O in VB6

790 bytes added, 21:59, 7 February 2008
/* Other File System Methods */
The following lines were added (+) and removed (-):
== Microsoft Scripting Runtime / FSO  ==* Be sure to "Set fso = Nothing" unless you like memory leaks and virtual memory errors in Windows.== Write/Create a new file using FileSystemObject ===== Write/Create a new file using FileSystemObject ===== Check if File Exists ===== Check if File Exists ===  Set fso = Nothing== Delete File ===== Delete File ===  == Copy File (Backup File) ===== Copy File (Backup File) ===== Write if exists, create if doesn't exist using FileSystemObject ===== Write if exists, create if doesn't exist using FileSystemObject ===== Launch Another Program (any) From Your VB Program ==== Other File System Methods == === Launch Another Program (any) From Your VB Program ===The above includes an optional command line parameter.  The program being launched, in this example, checks for that command line parameter.  It uses the reserved constant "Command". Private Function CheckLauncherParamter()  If InStr(LCase(Command), "/verified") > 0 Then    CheckLauncherParamter = True    blnDebug = False    mnuFileExit.Enabled = False  ElseIf InStr(LCase(Command), "/debug") > 0 Then    CheckLauncherParamter = True    blnDebug = True    mnuFileExit.Enabled = True  Else    CheckLauncherParamter = False  End If End Function== Check if Network Path and File are available ===== Check if Network Path and File are available === 
Bureaucrat, administrator
16,192
edits