Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19580
| From | SB <stNOOObenevSPAM@tin.it> |
|---|---|
| Newsgroups | it.comp.lang.visual-basic |
| Subject | Re: Aggiungere carattere in stringa registro |
| Date | 2019-03-13 11:10 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <5nkh8e5lnld7lldrle0hd9433tspev9b4d@4ax.com> (permalink) |
| References | (2 earlier) <q66hnb$sqb$1@gioia.aioe.org> <eqcf8eh5014od3dh6vrd3nup3qvkqh946s@4ax.com> <q68d9u$11s9$1@gioia.aioe.org> <apff8ep6224vfjojqj4njipo9lmr6vtfm2@4ax.com> <q695ce$hj5$1@gioia.aioe.org> |
Il giorno Tue, 12 Mar 2019 21:37:32 +0100, "Cerebus" <Cerebus@test.it> ha scritto: > >"SB" <stNOOObenevSPAM@tin.it> ha scritto nel messaggio >news:apff8ep6224vfjojqj4njipo9lmr6vtfm2@4ax.com... > >> Ho messo i commenti cos? pi?aro cosa fa. > >Ottimo. >Ci stiamo avvicinando. > >Un dubbio: tra una modifica e l'altra (aggiungere e togliere "-") ho bisogno >di eseguire un programma, per proseguire con lo script dopo che il programma >e' stato chiuso. > >Dal batch posso chiamarlo tranquillamente con CALL nomefile.exe, ma dal VBS? >Posso ugualmente? Naturalmente, basta aggiungere: Cmnd = "%windir%\system32\notepad.exe" wshShell.Run (Cmnd ,1 ,True) (dove il comando Cmnd è una stringa.) https://ss64.com/vb/run.html Nota che il True alla fine dice al VBS di aspettare che l'esecuzione del programma finisca prima di procedere oltre. >Te lo chiedo perche' se divido il due parti il tuo script perdo il contenuto >della variabile Reg_value, cioe' il nome computer prima di essere >modificato. >Potremmo far scrivere questo nome in un file di testo per poi farlo >rileggere dalla seconda parte dello script? >Lo divideremmo in script1.vbs e script2.vbs. >Il batch di occuperebbe di tutto. Mi sembra più macchinoso, e il VBS può fare molte più cose che un batch. >Oppure, visto che sappiamo GIA' che c'e' un "-" in piu', dovremmo toglierlo. >Quindi si rilegge la chiave con RegRead, che sara' "nomecomputer-", e gli si >toglie l'ultimo carattere (non ho idea di come!). Se il contenuto cambia solo per l'ultimo carattere puoi fare: Regvalue = Mid (Regvalue, 1, Len(Regvalue) - 1) -- ciao Stefano
Back to it.comp.lang.visual-basic | Previous | Next — Previous in thread | Next in thread | Find similar
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