Article View: free.it.visual-basic
Article #1397Re: Spostare files
From: Micky
Date: Sat, 29 May 2004 17:53
Date: Sat, 29 May 2004 17:53
31 lines
1979 bytes
1979 bytes
Iti consiglio pi� semplicemente
name percorsonomefile.xxx as nuovopercorsonuovonomefile.xxx
(es.: Name "c:/cartella/file.txt" as "c:/zaino/file.txt")
in pratica rinomina il percorso, per cui lo puoi spostare in un'altra
cartella e se vuoi anche cambiarci il nome
ciao
Michele
"alexia" <olella@libero.it> ha scritto nel messaggio
news:40b6e74d@x-privat.org...
> Ciao a tutti ho un problema :vorrei spostare dei files da una cartella ad
> un'altra,
> ho provato ad usare questa istruzione ma mi da un errore '53'.
> La cosa strana e' che nonostante l'errore il file me lo sposta ugualmente.
> C'e' qualcuno che mi sa aiutare?
> Grazie a tutti.
> ------------------------------
> Dim FileObject
> Dim origine, destinazione
> origine = ("c:\windows\desktop\files\" + (nomefile))
> destinazione = ("c:\windows\desktop\uguali\" + (nomefile))
> Set FileObject = CreateObject("Scripting.FileSystemObject")
> FileObject.MoveFile origine, destinazione
>
> ------------------------------------
>
>
Technical Details
Message-ID:
<c9aids$t1l$1@lacerta.tiscalinet.it>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!news.cambrium.nl!news.cambrium.nl!news2.euro.net!news.mailgate.org!draco.tiscalinet.it!not-for-mailReferences:
<40b6e74d@x-privat.org>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,6aadba15318ba182 X-Google-Attributes: gidf94ee,public Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!news.cambrium.nl!news.cambrium.nl!news2.euro.net!news.mailgate.org!draco.tiscalinet.it!not-for-mail From: "Micky" <micheleferrazzano@tiscali.it> Newsgroups: free.it.visual-basic Subject: Re: Spostare files Date: Sat, 29 May 2004 19:53:29 +0200 Organization: Tiscali Spa Lines: 33 Message-ID: <c9aids$t1l$1@lacerta.tiscalinet.it> References: <40b6e74d@x-privat.org> NNTP-Posting-Host: ppp-62-11-172-47.dialup.tiscali.it X-Trace: lacerta.tiscalinet.it 1085852924 29749 62.11.172.47 (29 May 2004 17:48:44 GMT) X-Complaints-To: abuse@tiscali.it NNTP-Posting-Date: 29 May 2004 17:48:44 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400