![]() |
File Existing - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: File Existing (/showthread.php?tid=891) |
File Existing - Da Undead - 21-04-2007 Im working with that DLL Register tut but im trying to make it check to see if it already exist and if not register the provided files in a specific folder. i want it to do is like Check the C:\WINDOWS\System32\name.dll but idk how :\ heres my function tho.. Code: Function SystemFileExist(ByVal SystemFileName As String) As Boolean - Da Undead - 21-04-2007 Got it to work but its not registering the files if its not there >.> Heres my sub load in main menu Code: Private Sub Form_Load() and heres my fixed function... Code: Function SystemFileExist(ByVal SystemFileName As String) As Boolean - Spodi - 21-04-2007 I think you can grab the system directory from the registry. Non-NT users (98 and below) used \System\ not \System32\, along with not everyone has their windows drive on C:\. - Da Undead - 21-04-2007 ya i can always make it check there and if nto there then another drive such as D:\ xD but most people have XP + - funkynut - 22-04-2007 yea but when you install xp, you can change what drive its installed on, and you could also use disk management to change drive letters. Of course you could always read the filepaths saved in registry for system folder, then problem would be solved (You know how it stores path to your documents, program files, temp folder etc) - Da Undead - 22-04-2007 ya but it wouldn't know that it's registered... but wats weird is when u register a dll, it doesn't add it into system32 folder, i just found that out :x |