[ Neo_Matrix @ 03.03.2004. 17:36 ] @
Kako je moguce sa Shell komandom otvoriti u Windows Exploreru neki fajl na taj nacin sto ce se proslediti njegova kompletna putanja, a WinExplorer ce otvoriti direktorijum u kome se nalazi taj fajl i isti ce biti selektiran.
Ovaj efekat se dobija kada se na ShotCut (LNK fajl) klikne na Properties pa Find Target

Da li koristiti Shell (BLAHBLAHBLAH...)
Da li SHellExecute ili ShellExectueEx i sa kojim parametrima ?

Mozda kao npr. Shell ("explorer.exe c:\00\1.exe /f") ili slicno !

Unapred Hvala !
[ mladenovicz @ 17.07.2004. 16:09 ] @
Code:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Const SW_SHOWNORMAL = 1

Private Sub Form_Load()
    ShellExecute Me.hwnd, "open", "explorer.exe", "/select, C:\Projects\ErrLib\MSSCCPRJ.SCC", vbNullString, SW_SHOWNORMAL
End Sub