Re: Retieve the Size of my app (or the Name)
From: MikeD (nobody_at_nowhere.edu)
Date: 06/13/04
- Next message: JamesJ: "ReadFile Stops SendData working!"
- Previous message: David Youngblood: "Re: Retieve the Size of my app (or the Name)"
- In reply to: tom: "Retieve the Size of my app (or the Name)"
- Next in thread: tom: "Re: Retieve the Size of my app (or the Name)"
- Reply: tom: "Re: Retieve the Size of my app (or the Name)"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 13 Jun 2004 09:00:23 -0400
"tom" <t@inwind.it> wrote in message
news:40caf4e5.1442234@powernews.inwind.it...
> Hallo,
> I'm Using VB5.
>
> -----
>
> I'd like to detect the current size
> of my application.
>
> I use FileLen
>
> in this way
>
> MySize = FileLen (App.path & "/" & "MyApp.exe")
>
> but
>
> if the user previously changed the name of "MyApp.exe"
> into another name, in example "Susan.exe"
>
> my mentioned method no more works (obviously).
>
> Otherway I need to retrieve the *current*
> name of my executing app,
> and then go with my mentoned method.
You couldn't have looked over the App object very well. The answer should
stand out like a sore thumb. Get the file name via the App object's EXEName
property.
Just curious, what does your app do (or what could users be doing) that
would change the file size? Even more curiously, why would users rename it?
Mike
- Next message: JamesJ: "ReadFile Stops SendData working!"
- Previous message: David Youngblood: "Re: Retieve the Size of my app (or the Name)"
- In reply to: tom: "Retieve the Size of my app (or the Name)"
- Next in thread: tom: "Re: Retieve the Size of my app (or the Name)"
- Reply: tom: "Re: Retieve the Size of my app (or the Name)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|