Hi ,
I am writing a log file handling program. I am using the ''Kernal32'' function lopen and lclose for calculating the size of file .
I am zipping file and want to delete a old log file but when i am deleting the file with
Kill ''C:demo_logfilelog estlog.log'' I am getting permission denied error.
Please Help me !!!!
Comments:
Jun 22, 2009
- Yes I did..
Public Function GetLogFileSize(FilePath As String) As Double
Dim Pointer As Long
Dim sizeofFile As Long
Pointer = lOpen(FilePath, OF_READ) 'size of the file
sizeofFile = GetFileSize(Pointer, lpFSHigh)
GetLogFileSize = sizeofFile '& " bytes" 'lclose Pointer
End Function
this is the function which I am using to calaulate the size of file...Jun 22, 2009
- Yes i did...Jun 22, 2009
- it is read only..
but when I clear the check box of read only, next time its again becoming read only(without running program also)
its not allowing me to remove the read-only permission.
I have system administrator rightsJun 22, 2009
- Its not allowing me to remove read-only permissionJun 22, 2009
- "Use simple file sharing" was already unchecked ....
Jun 22, 2009
- I am using VB 6.0
I have to write script for deleting the file , I cant delete it manually ....
Is there any other way to delete a file except Kill..Jun 23, 2009
- Hiiii,
I have another problem..
I want to create a folder in registry and read and write from the registry using VB 60
Please Help!!!!!!!!!Jun 23, 2009
- Hiiii,
I have another problem..
I want to create a folder in registry and read and write from the registry using VB 60
Please Help!!!!!!!!!Jun 23, 2009
- Thanx a lot :)
Actually i hav to pass source file path and destination file path to registry(In some folder) and want to read those paths from the registry...Jun 24, 2009
- Hiii
What is mnuMRU?
I want to create a folder in registry and save source and destination file path..
I have tried below but its not working
SaveSetting App.Title, "HKEY_CURRENT_USER\MyTestKey", "Testlog", "C:\demo_logfile\Testlog"
GetSetting App.Title, "HKEY_CURRENT_USER\MyTestKey", "Testlog", "C:\demo_logfile\Testlog"
I have to write a script so I am not using Dialog box, i have to directly get the source and destination file path from registry..
PLs Pls Help me ..its being long time I am doing this ....
Pls provide solution ....Jun 24, 2009
- Thanks a lot :):)
I will try this.Jun 29, 2009
- Hiii Again ,
How can I have the VB 6.0 program wait until a shell command is finished????
I am writing a function to zip a file and just below that I have written KILL command to delete the originol file. but its not waiting for the zip to finish and it is deleting the log file which i have to zip .
Plzzzzz provide the solution
Jun 29, 2009
- Can i use some API to know wether Zip file is created or not ???
PLzzzzzz help me its very URGENTJun 30, 2009
- Hii..
My PM told me to find some WinZip API and want me to get something return when the file is zipped..I searched but i didnt find any API related to WinZip which perform the Zip..
Plz reply.
how can i directly mail u ??Jun 30, 2009
- Thanks a lot :)
It was really helpful .
instead of replying to the same mail how can i ask something directly to u ?