![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I just tried to read the file info of the program that is running to have an auto version number by this.
But i always get an unsupported error-message. Is there no chance to read the file info of the program that uses this .dll? It would be great if this would be possible. Sub Globals Dim info(5) End Sub Sub App_Start Form1.Show FilesEx1.New1 info() = FilesEx1.FileInfo("DateTest.exe") Label1.Text = "Version " & SubString(info(2),6,4)-2007 &"."& Int(SubString(info(2),3,2))&"."& Int(SubString(info(2),0,2)) End Sub The program is called DateTest.exe, so it has to read its own info. Last edited by Christian72DD : 03-06-2008 at 08:15 AM. |
|
||||
|
Quote:
If it is not finding the file try info() = FilesEx1.FileInfo(AppPath & "\DateTest.exe") If that still doesn't work check the actual strings returned with a msgbox() before trying to build your version string to check the formatting. The strings may be differently formatted between device and desktop. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error During Program modification | mozaharul | Questions & Help Needed | 2 | 07-24-2008 07:38 AM |
| C# Custom control creation | Cableguy | Questions & Help Needed | 2 | 05-19-2008 02:04 PM |
| Experience with creation of HELP files | HARRY | Questions & Help Needed | 3 | 02-27-2008 02:58 PM |
| Speed of dynamic control creation | willisgt | Questions & Help Needed | 4 | 12-05-2007 02:52 PM |
| How to get saved date and time value or other properties of a file? | Rioven | Questions & Help Needed | 1 | 08-30-2007 07:10 AM |