Article View: free.it.visual-basic
Article #1761Re: aprire explorer da bottone di comando
From: only-offroad
Date: Mon, 09 Feb 2004 07:58
Date: Mon, 09 Feb 2004 07:58
31 lines
2121 bytes
2121 bytes
Lupo Alberto wrote:
> salve,
> sto alle prime armi, cercate di essere pazienti.
>
> Uso VB5 su XP pro.
>
> sia in XP che in Win 98 se digito iexplore nella riga di comando esegui si
> avvia explorer, se invece inserisco
>
> Call Shell("iexplore", 1)
>
> in un bottone di comando, l'eseguibile mi risponde che non trova il file.
>
> La cosa strana � che se inserisco "notepad" al posto di "iexplore", notepad
> si apre.
>
> Perch� con l'explorer non funziona?
>
> Grazie in anticipo.
>
>
Semplice! Notepad � nella cartella principale di path ovvero \Windows,
mentre iexplorer no.
La cosa migliore � prenderli il path di iexplorer dal registry con le
funzioni delle api e quindi riportarlo corretamente nella stringa
richiamata dal tuo command button.
Per la lettura del registry guarda nel sito comune che trovi sicuramente
esempi gi� fatti
ciao Max
Technical Details
Message-ID:
<05HVb.209121$VW.8597248@news3.tin.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mailReferences:
<YGpVb.275039$_P.9456043@news4.tin.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,b07c592b1b6e34b7 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2004-02-08 23:58:53 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail From: only-offroad <staff_@_only-offroad.com> Reply-To: staff_@_only-offroad.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.6) Gecko/20040113 X-Accept-Language: it, en-us, en MIME-Version: 1.0 Newsgroups: free.it.visual-basic Subject: Re: aprire explorer da bottone di comando References: <YGpVb.275039$_P.9456043@news4.tin.it> In-Reply-To: <YGpVb.275039$_P.9456043@news4.tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Lines: 31 Message-ID: <05HVb.209121$VW.8597248@news3.tin.it> Date: Mon, 09 Feb 2004 07:58:52 GMT NNTP-Posting-Host: 80.182.57.245 X-Complaints-To: newsmaster@tin.it X-Trace: news3.tin.it 1076313532 80.182.57.245 (Mon, 09 Feb 2004 08:58:52 MET) NNTP-Posting-Date: Mon, 09 Feb 2004 08:58:52 MET Organization: TIN