Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows vista windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
filelen in VB6


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
ansari1340's Avatar
Junior Member with 4 posts.
 
Join Date: Jun 2005
Experience: Intermediate
22-Jun-2005, 08:51 AM #1
filelen in VB6
Dears:
I have a problem in VB6 programming described as follows:
1-When I use the "filelen" command and the file size is over 2GB
compiler reply a minus number that is not correct .
2- When I use the "sqldmo.dll" in client can not backup from database
of sql server, but if sql be on client I can use backup .

Please advise me ,and thanks in advance for your cooperation .

Rgds.
Masoud Ansari
Aftab's Avatar
Member with 59 posts.
 
Join Date: Oct 2003
24-Jun-2005, 08:18 PM #2
Filelen
FileLen() returns a long integer which has a limit of 2Gb. Declare a double variable and use the size property of the file object (filesystemobject).

Dim fs As New FileSystemObject
Dim fi As File
Dim s As Double

Set fi = fs.GetFile("c:\autoexec.bat")
s = fi.Size
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:49 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.