View Single Post
Old 15-07-2003, 09:37   #4
robnet77
Senior Member
 
L'Avatar di robnet77
 
Iscritto dal: Oct 2001
Cittā: Dublino
Messaggi: 878
Re: [VB6] Come mi muovo da una directory a un'altra?

Quote:
Originally posted by "cionci"


Root

Codice:
Private Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long
Private Sub Form_Paint()
    'KPD-Team 2000
    'URL: http://www.allapi.net/
    'E-Mail: [email protected]
    SetCurrentDirectory App.Path
End Sub
ehm, chissā perché ho scritto strada in francese invece che radice in inglese...

grazie per il codice, ma non ho chiaro come usarlo...

la Api SetCurrentDirectory dovrebbe rendere come dir di lavoro l'argomento che gli si passa, giusto? In questo caso App.Path non č esattamente la dir predefinita? Io ho bisogno di scegliermi da solo la dir, ma ho visto che non posso passare una "C:\Programmi" come argomento...

Help!
robnet77 č offline   Rispondi citando il messaggio o parte di esso
 
Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.