Using VB6
I have the text file with different sizes, so i want to delete the file where filesize = 0 kb.
How to make a vb6 code for deleting the 0 kb files.
Need vb6 code Help
Using VB6
I have the text file with different sizes, so i want to delete the file where filesize = 0 kb.
How to make a vb6 code for deleting the 0 kb files.
Need vb6 code Help
You can use the FileLen function to check the file size.
You can use the FileLen function. See here: http://www.vbforums.com/showthread.php?t=498720
Try this function:
Sub DeleteZeroLengthFile(ByRef sFilePath As String)
Inputs: sFilePath Filename or path name of file to be tested.
Outputs: <None>
In/Outs: <None>
Errors: Will raise error if file doesn t exist, is inaccessible, is locked, or user
doesn t have permissions.
If FileLen(sFilePath) = 0 Then
Kill sFilePath
End If
End Sub
Win.ShellExecute 0, "open", "C:dirprogram.exe", "arguments", vbNullString, SW_SHOWNORMAL Win.ShellExecute 0, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL I want google....
I have a stored procedure in Sql Server 2005 with a varchar input parameter defined as: @Value varchar(24) = NULL in my VB6 application I try to set the parameter with an ADO function: Set ...
Using VB6 In a folder, i have n number of files, i want to delete a 0 kb files code Dim filename5 As String filename5 = Dir$(txtsourcedatabasefile & "*_*", vbDirectory) MsgBox filename5 Do ...
Using VB6 I have the text file with different sizes, so i want to delete the file where filesize = 0 kb. How to make a vb6 code for deleting the 0 kb files. Need vb6 code Help
I m using VB6 and I have a folder where I have n number of files. I want to change the file extension to .txt. I used the code below to change the extension of all .fin files to .txt. Dim filename1 ...
I m using Crystal Reports in my VB6 project, but I m facing error while loading the report in crystalreport1.action=1; Please give me some solution for this problem. It is showing the error as Error ...
When running my vb6 application I am getting error like, runtime error 53 : file not found: rscomclNoMsg.dll then i tried to register that dll from cmd line using regsvr32. Then I am getting ...
How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8