Your best source of information and news about BIOS , BIOS and software on the internet La migliore fonte di informazioni e notizie su BIOS, BIOS e software su Internet

Vista ARTICLES Vista ARTICOLI TOP 50 Top 50 Vista VIDEOS Vista VIDEO Vista SOFT Vista SOFT Vista HELP Vista AIUTO

AutoRun for the Command Prompt AutoRun per il Prompt dei comandi


When I was looking at the documentation for the registry and keys associated with the command processor I came across this: Quando ero esaminando la documentazione per il Registro di sistema e chiavi associate con il comando processore ho trovato questo:


Comando processore autorun chiave del Registro di sistema

Hmm. For the fun of it I opened up the key and put ‘notepad.exe’ in the AutoRun value.(To see how this actually worked) Per il divertimento di esso ho aperto la chiave e mettere 'notepad.exe' nel AutoRun valore. (Per vedere come questo di lavoro effettivamente prestate)


Auto processore comando Esegui

Any time I opened a console application, or a command prompt window notepad would launch - and the command processor would not start until it was closed. Ogni volta che ho aperto una console di applicazione, o di una finestra del prompt dei comandi notepad avrebbe lanciato - e il comando del processore non iniziare fino a quando non è stato chiuso. This includes the users login script. Ciò include la script di accesso degli utenti.

So. Così. This means whatever program I put in this key will execute, and the command processor will wait for it to finish before continuing. Ciò significa che qualsiasi programma ho messo in questa chiave verrà eseguito, il comando e il processore attendere la fine del processo prima di continuare.

This is perfect for something I was trying to do a few months back. Questo è perfetto per qualcosa che stava cercando di fare un paio di mesi indietro. I wanted to dynamically set a few environment variables - and have them available to any console based application. Volevo dinamicamente impostare alcune variabili d'ambiente - e sono loro a disposizione di qualsiasi applicazione basata su console. I tried putting it in the logon script, but that didn’t work since the environment variables only lasted for that session. Ho provato a mettere in script di accesso, ma che non ha funzionato in quanto le variabili di ambiente è durato solo per quella sessione.

I ended up using the CALL command within each batch file I had. Ho finito per usare la chiamata di comando all'interno di ciascun file batch che avevo. This was difficult because the batch files were part of an aging third party application - There were hundreds of them. Ciò è stato difficile, perché il file batch sono stati parte di un affinamento applicazione di terze parti - Non vi sono stati centinaia di loro. Also some of them were automatically generated from time to time by the application, so the solution was not perfect. Inoltre alcuni di essi sono stati generati automaticamente di volta in volta mediante l'applicazione, per cui la soluzione non è stata perfetta.

I went back and setup my “set environment variables” batch file in the AutoRun key of the registry (Side note - make sure you put quotes around the full path of the filename in this key…or it will get lost on the first space it sees). Sono tornato e la mia impostazione "impostare le variabili di ambiente" file batch nella AutoRun chiave del Registro di sistema (lato nota - assicuratevi di mettere virgolette il percorso completo del file in questa chiave… o che si perde il primo spazio è vede).

Then I removed my added call commands. Poi ho cancellato il mio invito aggiunto comandi. Now when I ran any command prompt my custom environment variable script executed dutifully. Ora, quando lanciavo qualsiasi prompt dei comandi personalizzati mio variabile d'ambiente script eseguito con lealtà.

Better yet, since it is a registry key I was able to write a quick login script that updated all the clients on the network with the new setting. Meglio ancora, dal momento che è una chiave di registro sono stato in grado di scrivere un breve script di accesso aggiornato che tutti i client in rete con la nuova impostazione.

I am not sure how often most administrators will need to use this registry key, since usually a login script will work for what you need. Io non sono sicuro di come spesso la maggior parte amministratori dovranno utilizzare questa chiave di registro, dal momento che di solito uno script di accesso lavorerà per ciò di cui avete bisogno. Still - the AutoRun key for the command prompt has its purpose. Ancora - AutoRun la chiave per il prompt dei comandi ha il suo scopo. Now that you know it is there you have the option to use it when needed. Ora che sapete è lì hai la possibilità di usarla quando necessario.

Popularity: 1% Popularity: 1%


Written by Steve Wiseman. Scritto da Steve Wiseman. Read more great feeds at is source Per saperne di più grande al feed è fonte WEBSITE SITO WEB
no comments nessun commento . .
Read more articles on Per saperne di più articoli su software software . .

Related articles Articoli correlati

No comments Nessun commento

There are still no comments on this article. Non ci sono ancora commenti a questo articolo.

Leave your comment... Lascia il tuo commento ...

If you want to leave your comment on this article, simply fill out the next form: Se si desidera lasciare il tuo commento a questo articolo, è sufficiente compilare il modulo successivo:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . È possibile utilizzare questi tag XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i > <strike> <strong>.