Article View: free.it.visual-basic
Article #4081Re: come eseguire un comando shell in VB?
From: baby2
Date: Thu, 12 Apr 2001 15:10
Date: Thu, 12 Apr 2001 15:10
23 lines
1482 bytes
1482 bytes
On Mon, 9 Apr 2001 19:56:47 +0200, "jagerhans"
<jagerhans@tiscalinet.it> wrote:
>Se qualcuno mi potesse spiegare perch� non riesco ad eseguire il seguente
>codice, mi farebbe un garnde piacere.
>
>Private Sub Command1_Click()
>Dim copy
>copy = Shell("c:\testo.txt C:\folder1", vbHide)
>End Sub
Perch� sbagli la sintassi. la funzione Shell ha come argomento un file
eseguibile o di comandi. (con estensione EXE o COM o BAT)
>
>ed ecco il risultato:
>
>Runtume error 53
>File not found
>
>eppure il file esiste.
>Grazie a tutti
>
>
Technical Details
Message-ID:
<3ad5c1c9.9653743@news.tiscalinet.it>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-uk-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!frnkge1-snf1.gtei.net!news.gtei.net!draco.tiscalinet.it!not-for-mailReferences:
<9ast1l$v86$1@pegasus.tiscalinet.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,6bd04ba661a9ff84 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2001-04-12 08:30:05 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-uk-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!frnkge1-snf1.gtei.net!news.gtei.net!draco.tiscalinet.it!not-for-mail From: baby2@virgilio.it Newsgroups: free.it.visual-basic Subject: Re: come eseguire un comando shell in VB? Date: Thu, 12 Apr 2001 15:10:54 GMT Organization: Tiscali Spa Lines: 24 Message-ID: <3ad5c1c9.9653743@news.tiscalinet.it> References: <9ast1l$v86$1@pegasus.tiscalinet.it> NNTP-Posting-Host: pd1-292.dialup.tiscalinet.it X-Trace: pegasus.tiscalinet.it 987088119 12596 62.10.18.36 (12 Apr 2001 15:08:39 GMT) X-Complaints-To: newsadmin@tiscali.it NNTP-Posting-Date: 12 Apr 2001 15:08:39 GMT X-Newsreader: Forte Free Agent 1.21/32.243