Bueno, con esta guia, se puede aprender a crear accesos directos a funciones de windows.. como apagar la pc, marcar una coneccion a internet, abrir la compactera, y muchas cosas mas.. aca les dejo un ejemplo para crear el acceso directo que nos permitiria expulsar la lectora de cds/dvds..
---------------------------------------------------------------------
Primero que nada necesitamos el siguiente archivo: CLICK ACA
1- Una vez que lo bajamos, descomprime y copia el archivo "NirCmd.exe" en la carpeta Windows. De esta forma ya podras utilizar los nuevos comandos desde la consola.
2- Crea un archivo .bat que contenga la sentencia ''nircmd.exe cdrom open X:'' (donde X es la letra asignada a tu grabadora). *(Como creo un archivo ".BAT"?)
3- Guarda el bat donde quieras y crea un acceso directo del mismo en el escritorio.Luego arrastra el acceso directo hasta la barra de Inicio rapido (como se ve en la primer imagen, la barra de tareas tiene que estar desbloqueada)
4- Puedes cambiar el icono con ''clic derecho/Propiedades/Cambiar icono...''.
*(Como creo un archivo ".BAT"?)
-Para crear uno de estos archivos, simplemente tenes que abrir el Bloc de Notas, poner la sentencia, o comando que deseemos y guardar el archivo con la extension ".bat"
---------------------------------------------------------------------
Sabiendo lo anterior, lo unico que tenemos que reemplazar es el comando que insertamos dentro del archivo ".bat" por el que estemos necesitando..
A continuaci{on los comandos disponibles..
Open the door of J:
CD-ROM drive nircmd.exe cdrom open j:
Close the door of Y:
CD-ROM drive nircmd.exe cdrom close y:
Increase the system volume
by 2000 units (out of 65535) nircmd.exe changesysvolume 2000
Decrease the system volume
by 5000 units (out of 65535) nircmd.exe changesysvolume -5000
Set the volume to the highest
value nircmd.exe setsysvolume 65535
Mute the system volume nircmd.exe mutesysvolume 1
Unmute the system volume nircmd.exe mutesysvolume 0
Switch the system volume
between the mute and
normal state. nircmd.exe mutesysvolume 2
Create a shortcut on your
desktop that switch the
system volume between the
mute and normal state. nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2
Turn off the monitor nircmd.exe monitor off
Start the default screen
saver nircmd.exe screensaver
Put your computer
in 'standby' mode nircmd.exe standby
log off the current user nircmd.exe exitwin logoff
Ask if you want to reboot,
and if you answer 'Yes',
reboot the computer. nircmd.exe qboxcom "Do you want to reboot ?" "question" exitwin reboot
Turn off your computer nircmd.exe exitwin poweroff
Turn off all computers
specified in computers.txt ! multiremote copy "c:\temp\computers.txt" exitwin poweroff force
Dial to "My Internet"
connection nircmd.exe rasdial "My Internet"
Disconnect the "My Internet"
connection nircmd.exe rashangup "My Internet"
Make your Internet Explorer
windows 75% transparent !
(192 / 256) nircmd.exe win trans ititle "internet explorer" 192
Minimize all your
Internet Explorer windows nircmd.exe win min class "IEFrame"
Close all your
Internet Explorer windows nircmd.exe win close class "IEFrame"
Close all your Explorer
windows (My Computer,
folders, and so on) nircmd.exe win close class "CabinetWClass"
Hide all your
Internet Explorer windows nircmd.exe win hide class "IEFrame"
Show all your
Internet Explorer windows
(after you made them
with previous example) nircmd.exe win show class "IEFrame"
Center all top-level
windows nircmd.exe win center alltop
Remove the title bar
of My Computer window. nircmd.exe win -style title "my computer" 0x00C00000
Return the title bar of
My Computer window that
we removed in the
previous example. nircmd.exe win +style title "my computer" 0x00C00000
Set the My Computer
window to right-to-left
order (For hebrew and
arabic languages) nircmd win +exstyle title "my computer" 0x00400000
Set all child windows
of My Computer window
to right-to-left order
(For hebrew and
arabic languages) nircmd win child title "my computer" +exstyle all 0x00400000
Create a shortcut
on your desktop that
closes all your
Internet Explorer
windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Close All IE" win close class "IEFrame"
Create a shortcut
on your desktop
that hides all your
Internet Explorer
windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Hide All IE" win hide class "IEFrame"
Create a shortcut
on your desktop
that shows back
all your Internet
Explorer windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Show All IE" win show class "IEFrame"
Set the Windows
Calculator as
top-most window
(above all other
windows) nircmd.exe win settopmost title "Calculator" 1
Set the Windows
Calculator back to
regular window
(non top-most
window) nircmd.exe win settopmost title "Calculator" 0
---------------------------------------------------------------------
Primero que nada necesitamos el siguiente archivo: CLICK ACA
1- Una vez que lo bajamos, descomprime y copia el archivo "NirCmd.exe" en la carpeta Windows. De esta forma ya podras utilizar los nuevos comandos desde la consola.
2- Crea un archivo .bat que contenga la sentencia ''nircmd.exe cdrom open X:'' (donde X es la letra asignada a tu grabadora). *(Como creo un archivo ".BAT"?)
3- Guarda el bat donde quieras y crea un acceso directo del mismo en el escritorio.Luego arrastra el acceso directo hasta la barra de Inicio rapido (como se ve en la primer imagen, la barra de tareas tiene que estar desbloqueada)
4- Puedes cambiar el icono con ''clic derecho/Propiedades/Cambiar icono...''.
*(Como creo un archivo ".BAT"?)
-Para crear uno de estos archivos, simplemente tenes que abrir el Bloc de Notas, poner la sentencia, o comando que deseemos y guardar el archivo con la extension ".bat"
---------------------------------------------------------------------
Sabiendo lo anterior, lo unico que tenemos que reemplazar es el comando que insertamos dentro del archivo ".bat" por el que estemos necesitando..
A continuaci{on los comandos disponibles..
Open the door of J:
CD-ROM drive nircmd.exe cdrom open j:
Close the door of Y:
CD-ROM drive nircmd.exe cdrom close y:
Increase the system volume
by 2000 units (out of 65535) nircmd.exe changesysvolume 2000
Decrease the system volume
by 5000 units (out of 65535) nircmd.exe changesysvolume -5000
Set the volume to the highest
value nircmd.exe setsysvolume 65535
Mute the system volume nircmd.exe mutesysvolume 1
Unmute the system volume nircmd.exe mutesysvolume 0
Switch the system volume
between the mute and
normal state. nircmd.exe mutesysvolume 2
Create a shortcut on your
desktop that switch the
system volume between the
mute and normal state. nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2
Turn off the monitor nircmd.exe monitor off
Start the default screen
saver nircmd.exe screensaver
Put your computer
in 'standby' mode nircmd.exe standby
log off the current user nircmd.exe exitwin logoff
Ask if you want to reboot,
and if you answer 'Yes',
reboot the computer. nircmd.exe qboxcom "Do you want to reboot ?" "question" exitwin reboot
Turn off your computer nircmd.exe exitwin poweroff
Turn off all computers
specified in computers.txt ! multiremote copy "c:\temp\computers.txt" exitwin poweroff force
Dial to "My Internet"
connection nircmd.exe rasdial "My Internet"
Disconnect the "My Internet"
connection nircmd.exe rashangup "My Internet"
Make your Internet Explorer
windows 75% transparent !
(192 / 256) nircmd.exe win trans ititle "internet explorer" 192
Minimize all your
Internet Explorer windows nircmd.exe win min class "IEFrame"
Close all your
Internet Explorer windows nircmd.exe win close class "IEFrame"
Close all your Explorer
windows (My Computer,
folders, and so on) nircmd.exe win close class "CabinetWClass"
Hide all your
Internet Explorer windows nircmd.exe win hide class "IEFrame"
Show all your
Internet Explorer windows
(after you made them
with previous example) nircmd.exe win show class "IEFrame"
Center all top-level
windows nircmd.exe win center alltop
Remove the title bar
of My Computer window. nircmd.exe win -style title "my computer" 0x00C00000
Return the title bar of
My Computer window that
we removed in the
previous example. nircmd.exe win +style title "my computer" 0x00C00000
Set the My Computer
window to right-to-left
order (For hebrew and
arabic languages) nircmd win +exstyle title "my computer" 0x00400000
Set all child windows
of My Computer window
to right-to-left order
(For hebrew and
arabic languages) nircmd win child title "my computer" +exstyle all 0x00400000
Create a shortcut
on your desktop that
closes all your
Internet Explorer
windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Close All IE" win close class "IEFrame"
Create a shortcut
on your desktop
that hides all your
Internet Explorer
windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Hide All IE" win hide class "IEFrame"
Create a shortcut
on your desktop
that shows back
all your Internet
Explorer windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Show All IE" win show class "IEFrame"
Set the Windows
Calculator as
top-most window
(above all other
windows) nircmd.exe win settopmost title "Calculator" 1
Set the Windows
Calculator back to
regular window
(non top-most
window) nircmd.exe win settopmost title "Calculator" 0