Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19599

Re: Aggiungere carattere in stringa registro

From "Cerebus" <Cerebus@test.it>
Newsgroups it.comp.lang.visual-basic
Subject Re: Aggiungere carattere in stringa registro
Date 2019-03-14 23:10 +0100
Organization Aioe.org NNTP Server
Message-ID <q6ejgp$u3p$1@gioia.aioe.org> (permalink)
References (9 earlier) <q6beq8$slb$1@gioia.aioe.org> <qufi8ed4e4nthrud9nkjtfibk0iqk12tm1@4ax.com> <q6bmd3$1vvl$1@gioia.aioe.org> <q6bp9n$djd$1@gioia.aioe.org> <4uui8edefm3q5cidkpdo6lc5uucepcqsso@4ax.com>

Show all headers | View raw


"SB" <stNOOObenevSPAM@tin.it> ha scritto nel messaggio 
news:4uui8edefm3q5cidkpdo6lc5uucepcqsso@4ax.com...

> Per usarlo nelle tue variabili devi fare:

Funziona. Grazie.
Ci sono troppe cose da sapere che vengono fuori solo con l'esperienza, e la 
cosa che mi meraviglia e' che ci sono svariati modi di fare la stessa cosa, 
tutti documentati.
Intendo dire: non sono modi diversi di agire (tipici della programmazione) 
ma proprio diversi modi "fatti" per fare una cosa comune come quella di 
cancellare un file.


Ecco come ho fatto:

Set wshShell = CreateObject( "WScript.Shell" )

PROGRAM_DATA = wshShell.ExpandEnvironmentStrings ("%PROGRAMDATA%")

'definisce nomefile e folder
Folder = PROGRAM_DATA & "\nome"
File1 = Folder & "\nomefile.txt"
File2 = Folder & "\altronomefile.txt"

Set Fso = CreateObject("Scripting.FileSystemObject")

'cancella file1 e file2
If Fso.FileExists(File1) Then Fso.DeleteFile File1, True
If Fso.FileExists(File2) Then Fso.DeleteFile File2, True

'svuota folder
Fso.DeleteFile(Folder & "\secondo_folder\*.*"), True

'cancella fodler
If Fso.FolderExists(Folder & "\secondo_folder") Then Fso.DeleteFolder(Folder 
& "\secondo_folder"), True

Domani mi cimento nella scrittura del file.
Grazie ancora. 

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-11 17:44 +0100
  Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-11 21:32 +0100
    Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-11 21:50 +0100
      Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-12 14:31 +0100
        Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-12 14:47 +0100
          Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-12 15:36 +0100
            Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-12 21:37 +0100
              Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 11:10 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 14:41 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 15:37 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 16:08 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 15:27 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 16:20 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 17:00 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 17:19 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 17:23 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 17:49 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 18:02 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 18:20 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 18:24 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 18:31 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 18:58 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 20:41 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-13 21:30 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 23:03 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-14 23:10 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-14 23:21 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-15 13:09 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-15 13:20 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-15 14:57 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-15 13:31 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-03-15 14:56 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-15 19:10 +0100
                Re: Aggiungere carattere in stringa registro SB <stNOOObenevSPAM@tin.it> - 2019-03-13 23:10 +0100
                Re: Aggiungere carattere in stringa registro "Cerebus" <Cerebus@test.it> - 2019-04-28 23:43 +0200

csiph-web