Article View: free.it.visual-basic
Article #3329Re: Come si f� a inserire.........Help
From: Metal_Lord
Date: Sat, 24 Aug 2002 18:15
Date: Sat, 24 Aug 2002 18:15
23 lines
1908 bytes
1908 bytes
"\(�`�.� []V[] A L E S T O R []V[] �.���\)" <malestorm.3000@libero.it>
wrote in news:uMN99.4158$ub2.70180@news1.tin.it:
> Ok per� scusami come faccio a dire al file.exe che sto creando di
> puntare all'interno della stessa directory del cd? Non posso mettergli
> f e neanche g (le mie 2 unit�), altrimenti quando passo il cd a chi ha
> unit� diverse non funzioner�.
>
>
Prova ad usare l'API shellexecute, oppure prova:
Function NormalizzaPath(ByVal NomeFile As String) As String
' Normalizza il percorso
NomeFile = Trim(NomeFile & "")
NormalizzaPath = NomeFile & IIf(Right(NomeFile, 1) = "\", "", "\")
End Function
Private Sub Command1_Click()
Shell NormalizzaPath(App.Path) & "Nomefiledaeseguire"
' esegue Nomefiledaeseguire nella cartella in cui � presente
' la tua applicazione
End Sub
Technical Details
Message-ID:
<Xns9274CD3D5A008vvv@195.31.190.131>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mailReferences:
<LVI99.3200$ub2.50770@news1.tin.it> <Xns9274AC84722B1vvv@195.31.190.131> <uMN99.4158$ub2.70180@news1.tin.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,7261b1fe1b01152b X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2002-08-24 11:30:55 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail Newsgroups: free.it.visual-basic Subject: Re: Come si f� a inserire.........Help From: "Metal_Lord" <chiedimi@seti.serve> References: <LVI99.3200$ub2.50770@news1.tin.it> <Xns9274AC84722B1vvv@195.31.190.131> <uMN99.4158$ub2.70180@news1.tin.it> Organization: Your Company Message-ID: <Xns9274CD3D5A008vvv@195.31.190.131> User-Agent: Xnews/5.04.25 Lines: 23 Date: Sat, 24 Aug 2002 18:15:41 GMT NNTP-Posting-Host: 80.104.3.230 X-Complaints-To: newsmaster@tin.it X-Trace: news1.tin.it 1030212941 80.104.3.230 (Sat, 24 Aug 2002 20:15:41 MET DST) NNTP-Posting-Date: Sat, 24 Aug 2002 20:15:41 MET DST