🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2843

Re: Richiamare exe

#2843
From: Francesco
Date: Sun, 02 Feb 2003 16:38
35 lines
2431 bytes
normalmente quello che puo retituire "qualcosa" come dici tu, � un programma
a riga di comando o un vero comando es."dir"
se a te interessa intercettare cosa scriver� a video il programma,la cosa e
abbastanza semplice,
devi inviare l'output del programma,anzich� al monitor,ad un file che decidi
tu,

faccio un esempio:
se tu esegui normalmente:
    "dir"
avrai la visualizzazione della directory in cui sei in quel momento,
ma se tu esegui ad esempio:
"dir > miofile.txt"
quello che avrebbe dovuto visualizzare il comando(o il programma),lo
troverai in un file chiamato "miofile.txt"
che troverai nella stessa directory dove hai eseguito il comando.
Tornando a vb:
Shell("dir > miofile.txt",0)
ora nella directory del proggetto di vb,avrai un file txt da dove attingere
le tue informazioni.

ciao jokers@virgilio.it

"Emix_8" <onailimeniram@libero.it> ha scritto nel messaggio
news:uKW_9.71771$YG2.2018637@twister1.libero.it...
> Ma se il programma chiamato deve restituire un valore al termine della
> computazione come si fa?
> "Pierluigi" <pierluigi.pao@inwind.it> ha scritto nel messaggio
> news:8hS_9.72565$ZE.1955024@twister2.libero.it...
> > usa Shell
> >
> >
> >
>
>
Technical Details
Message-ID: <b1jhj3$4jj$1@newsreader.mailgate.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!newsreader.mailgate.org!not-for-mail
References: <iBN_9.69744$YG2.1963406@twister1.libero.it> <8hS_9.72565$ZE.1955024@twister2.libero.it> <uKW_9.71771$YG2.2018637@twister1.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,a03501ee71d73c5f
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-02-02 08:40:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!newsreader.mailgate.org!not-for-mail
From: "Francesco" <delucia_f@hotmail.com>
Newsgroups: free.it.visual-basic
Subject: Re: Richiamare exe
Date: Sun, 2 Feb 2003 17:38:05 +0100
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 37
Sender: delucia_f@hotmail.com
Message-ID: <b1jhj3$4jj$1@newsreader.mailgate.org>
References: <iBN_9.69744$YG2.1963406@twister1.libero.it> <8hS_9.72565$ZE.1955024@twister2.libero.it> <uKW_9.71771$YG2.2018637@twister1.libero.it>
NNTP-Posting-Host: 217.201.18.185
X-Trace: newsreader.mailgate.org 1044203943 4723 217.201.18.185 (2 Feb 2003 16:39:03 GMT)
X-Complaints-To: abuse@mailgate.org
NNTP-Posting-Date: Sun, 2 Feb 2003 16:39:03 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300