🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Vbscript - dos

#247
From: Rafunk
Date: Mon, 13 Nov 2006 08:32
38 lines
2720 bytes
AntFast wrote:
> "Rafunk" <rafunkSPAM@NOTHANKSlibero.it> ha scritto nel messaggio
> news:4557443c$0$7632$4fafbaef@reader1.news.tin.it...
>> AntFast wrote:
>>> "Rafunk" <rafunkSPAM@NOTHANKSlibero.it> ha scritto nel messaggio
>>> news:4556ef21$0$13769$4fafbaef@reader3.news.tin.it...
>>>> AntFast wrote:
> Ciao Rafunk
> Gradirei risolvere con un VBScript.., giusto per imparare.
> Sto studiando ovunque, purtroppo i risultati sono scarsini... :-(
> Mi daresti qualche dritta su come impostare lo script che
> risolva il problema di accorciare i nomi dei file sopra esposti ?
> So che non e' bello "approfittarsi" delle conoscenze altrui,
> ma credimi, mi sono completamente arenato...
> Con stima
> AntFast

Giusto 2 dritte, non � utile che ti dia gi� la "pappa pronta"... ;-)
Iniza col dare un'occhiata allo script che ho postato nel primo reply, che
elenca i file di una cartella.
Poi approfondisci gli oggetti FileSystemObject, Folder e File leggendo qui:
http://msdn2.microsoft.com/en-us/library/d6dw7aeh.aspx.
Lo script dovr� ciclare sui file della folder, ad esempio con il costrutto for
each...next
http://msdn2.microsoft.com/en-US/library/tywtbxd0(VS.80).aspx
e cambiarne il nome.
Per fare ci� puoi usare la propriet� Name del gi� citato oggetto File e la
funzione Replace
(http://msdn2.microsoft.com/en-US/library/238kz954(VS.80).aspx)

Buon lavoro.

Bye

Raf

-----------------------------------------------------
Funk: cooler than the other side of the pillow.
Technical Details
Message-ID: <45582da9$0$7636$4fafbaef@reader1.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail
References: <wGu5h.2467$mZ5.421@tornado.fastwebnet.it> <4556ef21$0$13769$4fafbaef@reader3.news.tin.it> <EMD5h.2756$mZ5.2516@tornado.fastwebnet.it> <4557443c$0$7632$4fafbaef@reader1.news.tin.it> <b%P5h.3713$mZ5.1806@tornado.fastwebnet.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,f85f7917273de692
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,CP1252
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail
From: "Rafunk" <zero@none0.it>
Newsgroups: free.it.visual-basic
References: <wGu5h.2467$mZ5.421@tornado.fastwebnet.it> <4556ef21$0$13769$4fafbaef@reader3.news.tin.it> <EMD5h.2756$mZ5.2516@tornado.fastwebnet.it> <4557443c$0$7632$4fafbaef@reader1.news.tin.it> <b%P5h.3713$mZ5.1806@tornado.fastwebnet.it>
Subject: Re: Vbscript - dos
Date: Mon, 13 Nov 2006 09:32:22 +0100
MIME-Version: 1.0
Content-Type: text/plain;
 charset="Windows-1252"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Lines: 39
Message-ID: <45582da9$0$7636$4fafbaef@reader1.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 82.50.196.150
X-Trace: 1163406761 reader1.news.tin.it 7636 82.50.196.150:1411
X-Complaints-To: Please send abuse reports to abuse@tin.it