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


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

Re: Aggiungere carattere in stringa registro

From SB <stNOOObenevSPAM@tin.it>
Newsgroups it.comp.lang.visual-basic
Subject Re: Aggiungere carattere in stringa registro
Date 2019-03-13 16:20 +0100
Organization Aioe.org NNTP Server
Message-ID <dl7i8edhgfnnkngkp5csjd457uj0sj15ik@4ax.com> (permalink)
References (4 earlier) <q68d9u$11s9$1@gioia.aioe.org> <apff8ep6224vfjojqj4njipo9lmr6vtfm2@4ax.com> <q695ce$hj5$1@gioia.aioe.org> <5nkh8e5lnld7lldrle0hd9433tspev9b4d@4ax.com> <q6b400$18f6$1@gioia.aioe.org>

Show all headers | View raw


Il giorno Wed, 13 Mar 2019 15:27:10 +0100, "Cerebus" <Cerebus@test.it> ha
scritto:

>
>"SB" <stNOOObenevSPAM@tin.it> ha scritto nel messaggio 
>news:5nkh8e5lnld7lldrle0hd9433tspev9b4d@4ax.com...
>
>E' tutto ok, ma il comando per eseguire un file mi restituisce un errore.
>Il percorso del sw e' "C:\Program Files (x86)\nome\nome64.exe"
>
>Si', e' a 64 bit ma si trova dentro "C:\Program Files (x86)", dove e' 
>presente anche la versione 32 bit (nome.exe).
>
>> Cmnd = "C:\Program Files (x86)\nome\nome64.exe"
>>
>> wshShell.Run (Cmnd ,1 ,True)
>
>Mi restituisce "Impossibile utilizzare parentesi per la chiamata di routine 
>Sub"
>
>Se uso:
>
>Set objShell = WScript.CreateObject("WScript.Shell")
>objShell.Run ("C:\Program Files (x86)\nome\nome64.exe" & 
>WScript.ScriptFullName)
>
>Mi da' "Impossibile trovare il file specificato".

Se hai degli spazi all'interno della stringa di comando, .Run va in errore, devi
mettere le " anche all'esterno.

In particolare se hai questa stringa:

Cmnd = "C:\Program Files (x86)\nome\nome64.exe"

deve diventare così:

Cmnd = Chr(34) & "C:\Program Files (x86)\nome\nome64.exe" & Chr(34)


-- 
ciao
  Stefano

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