LAZIOMATICA – Guida allo Sviluppo Software

La nuova forma del software su misura…

 

How to Change windows 7 Product key with command line

1 – Open command line program with administrator privilegies
2 – navigate to c:\windows\system32
3 – now you ready to install the new Product Key with this command
slmgr.vbs -ipk "insert your new product key here"/code>
4 - wait for a popup that indicate result operation
5 - after you can activate your product with this command
slmgr.vbs -ato

Filed under : Windows,Windows 7
By admin
On 22 febbraio 2011
At 12:28
Comments : 0
 
 

Windows OS – run a .bat file in a silent mode – without opening a console window

After i seek around the web i have a definitive solution to run a batch file in a silent way, that is a vb script, lanched on a task system (example on startup), like this:

Set WshShell = CreateObject("WScript.Shell")
cmds=WshShell.RUN("c:\my_batch_file.bat", 0, True)
Set WshShell = Nothing

Setting intWindowStyle to 0, in the second line, will hide the output window.
Save this as script.vbs file and run it when you need.

Filed under : scripts,Windows
By admin
On 10 gennaio 2011
At 20:04
Comments : 0
 
 

Azzerare la cache DNS su Windows e Mac OS X Leopard

Per chi lavora spesso con la gestione di URL e DNS potrebbe essere necessario cancellare la cache dei DNS salvata dal proprio sistema operativo per riflettere degli aggiornamenti recenti.

Vediamo le procedure per i due sistemi operativi menzionati.

Svuotare la cache DNS su Windows

Aprire una finestra di DOS/Prompt dei Comandi (start->esegui inserire il comando cmd.com) e digitate il seguente comand

ipconfig /flushdns

otterrete una risposta del tipo:

1. Windows IP Configuration

2. Successfully flushed the DNS Resolver Cache.

Svuotare la cache DNS su Mac OS X Leopard

Per cancellare la cache DNS su Leopard è necessario fare affidamento all’utility dscacheutil.

dscacheutil -flushcache

In questo caso non sono necessari privilegi di amministratore dunque non è essenziale eseguire la chiamata via sudo.

Filed under : MAC OSX,Windows
By admin
On 6 febbraio 2009
At 13:34
Comments : 0