View Single Post
Old 01-24-2012, 10:07 PM   #417
Gauthier
Enthusiast
Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'
 
Posts: 25
Karma: 10000
Join Date: Jan 2012
Device: kindle
The calibre path saved by setCalibrePath
is machine dependent and not really a document Property thus use:
and of course also do the verification there
Code:
Sub setCalibrePath(szPath As String)
    SaveSetting "BookCreator", "Calibre", "CalibrePath", szPath
    If Not IsFileExists(Replace(szPath , """", "") + "\ebook-convert.exe") Then
        MsgBox "Calibre ebook-converter Not Found there"
    End If
End Sub

Function getCalibrePath() As String
    getCalibrePath = GetSetting("BookCreator", "Calibre", "CalibrePath")
End Function
That will save to the registry.

Last edited by Gauthier; 01-24-2012 at 10:51 PM. Reason: added path verfication on save
Gauthier is offline   Reply With Quote