Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!nntpspool01.opticnetworks.net!aioe.org!.POSTED!not-for-mail From: "salclem2" Newsgroups: it.comp.lang.visual-basic Subject: Re: funzione Dir Date: Wed, 7 Oct 2015 23:27:43 +0200 Organization: Aioe.org NNTP Server Lines: 33 Message-ID: References: NNTP-Posting-Host: XgE2ex34R1ainOgt9Jgikw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=response Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-Priority: 3 X-MSMail-Priority: Normal Xref: csiph.com it.comp.lang.visual-basic:18532 "Greg" nel suo ultimo post si è così espresso: > Mi sono accorto oggi che la riga: > x= Dir("G:\miofile.txt") > mi restituisce Vuoto anzichè "" quando il drive non è presente. A cosa potrebbe essere dovuto? Grazie per ogni info > O esiste o non esiste il drive, dir restituisce sempre una stringa vuota se il file non esiste, restituisce qualcosa solo se il file esiste. Help ================================================================= Dir Function Returns a String representing the name of a file, directory, or folder that matches a specified pattern or file attribute, or the volume label of a drive. Syntax Dir[(pathname[, attributes])] The Dir function syntax has these parts: Part Description pathname Optional.String expression that specifies a file name - may include directory or folder, and drive. A zero-length string ("") is returned if pathname is not found. ==================================================================== -- http://freewarewiki.it http://freewareonline.org http://netuser.altervista.org