Mostrando entradas con la etiqueta system start. Mostrar todas las entradas
Mostrando entradas con la etiqueta system start. Mostrar todas las entradas

viernes, 5 de julio de 2013

Abrir una direccion web con c++. – Phone – cancer



Para abrir direcciones web conc++ lo que haremos será usar la funciónsystem de la libreríastdlib.h de la siguiente manera:

system("start www.WebQueQuieresAbrir.com");

Donde"Start" abre la dirección y "www.WebQueQuieresAbrir.com" es la dirección que quieres abrir.

Un ejemplo de esto sería algo como:

system("start www.google.com");

Esto lo que hará será abrirwww.google.comen nuestro navegador predeterminado.

Veamos algo un poco más formal:

#include iostream
#include stdlib.h

using namespace std;

int main(){
cout "Presione enter para abrir www.google.com" endl;
system("pausenull");
system("start www.google.com");
cout "Presione enter para salir" endl;
system("pausenull");
return 0;
}

La consola nos dirá que presionemos la tecla enter para abrirgoogle.com, "system("pausenull");" se encargará de pausar el programa hasta que presionemos enter,"system("start www.google.com");" abrirá google.com en nuestro navegador predeterminado, y"system("pausenull");" nuevamente pausará el programa y luego de presionar la tecla enter (ó cualquiere otra) éste se cerrará.

Y si desean abrir más de una dirección web lo que deben hacer es usar la sentencia switch case, esto sería:

#include iostream
#include stdlib.h

using namespace std;

int main(){
system("cls");
cout "Presione 1 y luego enter para abrir www.google.com" endl;
cout "Presione 2 y luego enter para abrir www.youtube.com" endl;
cout "Presione 0 y luego enter para salir" endl;
int opcion;
cin opcion;
switch(opcion){
case 1:
system("start www.google.com");
main();
break;
case 2:
system("start www.youtube.com");
main();
break;
case 0:
exit(0);
break;
}
return 0;
}


Contamos con dos opciones en la consola, la primera para abrirgoogle.com y la segunda para abriryoutube.com, escribimos "main()" al final de cadacase (antes del break) para que después de ejecutar cada opción siga dentro de lafuncion main, y un "system("cls");" para limpiar la pantalla luego abrir alguna web.




Service business software Best Criminal Lawyers in Arizona DONATE CARS IN MA motorcycle lawyer los angeles motorcycle accident lawyer california Injury Lawyers Social media examiner Online College Course Online casino state of california car insurance motorcycle accident lawyer san francisco utah mesothelioma lawyer Hire php developers FUTURISTIC ARCHITECTURE Casino REGISTER FREE DOMAINS structured settlement annuity companies DUI lawyer Donate your Car for Money Futuristic Architecture Online classes Learning adobe illustrator mesothelioma attorney illinois Best social media platforms Casino reviews illinois mesothelioma lawyer Email Bulk Service Mobile casino Custom WordPress theme designer cheap car insurance in virginia accident attorney in los angeles Live casino attorney lawyer mesothelioma mesothelioma charities Make money online Australia Italian cooking school personal injury accident lawyer DONATE YOUR CAR SACRAMENTO Donate Cars in MA Business VOIP Solutions baltimore mesothelioma attorneys DONATE YOUR CAR FOR MONEY firm law mesothelioma pharmacist jobs in chicago DONATING USED CARS TO CHARITY STRUCTURED ANNUITY SETTLEMENT mesotheliama home phone internet bundle mesothelioma lawyer houston online colledges Criminal defense lawyer CAR INSURANCE QUOTES PA Car insurance quotes Utah CAR INSURANCE IN SOUTH DAKOTA semi truck accident lawyers california mesothelioma attorney auto insurance yuba city ca buying an annuity calculator Cheap car insurance for ladies holland michigan college better conferencing calls Best criminal lawyer in Arizona How to Donate A Car in California Computer science classes online broward county dui lawyer Hire php programmers structured settlement blog mesothelioma attorneys california life insurance quotes mesothelioma symptoms uk homeowner loans california law lemon Dwi lawyer PAPERPORT PROMOTIONAL CODE Donate your car Sacramento Donating Used Cars to Charity los angeles motorcycle accident lawyer Seo companies WordPress theme designers Register free domains New social media platforms Cheap Domain Registration Hosting Proud Italian cook Criminal lawyer mesothelioma claims illinois law lemon Holland Michigan College Best social media platforms for business Seo services Christmas cards truck accident attorney texas paperport promotional code Best Seo company domain yahoo Php programmers for hire Claim Social media platforms for business Hire php developer Seo company Personal Injury Lawyers Car Insurance Companies Bankruptcy lawyer Futuristic architecture Data Recovery Raid Php programmers World Trade Center Footage world trade center footage wisconsin mesothelioma attorney Business finance group Asbestos Lawyers MESOTHELIOMA LAW FIRM Auto Mobile Shipping Quote small business administration sba donate your car for money phd in counseling education mesothelioma lawsuits Personal Injury Law Firm webex costs Online Motor Insurance Quotes Social media campaigns mesothelioma settlement amounts Business management software Social media management Home Phone Internet Bundle Online Christmas cards best consolidation loan student WordPress themes for designers personal injury firm Criminal lawyer Miami WordPress hosting selling a structured settlement Custom Christmas cards Photo Christmas cards car insurance quotes VIRTUAL DATA ROOMS boca raton personal injury attorney Car Accident Lawyers Psychic for free MORTGAGE ADVISER Psd to WordPress injury lawyers Donate your car for kids ANNUITY SETTLEMENT Tech school PHD on Counseling Education Register Free Domains Html email Social media platforms Dallas Mesothelioma Attorneys Car insurance quotes pa WORLD TRADE CENTER FOOTAGE Psd to html dallas mesothelioma attorneys injury lawyers west palm beach mesothelioma attorney directory DONATE A CAR IN MARYLAND Donate car to charity California Adobe illustrator classes mesothelioma how to donate a car in california Online Criminal Justice Degree Social media strategies Social media tools canada personals yahoo Cheap Car Insurance in Virginia Car Donate MET AUTO Mesothelioma Law Firm Donate Car to Charity California Donate Car for Tax Credit Donate Your Car Sacramento mesothelioma information Sell Annuity Payment Donate Your Car for Kids primary pulmonary hypertension supportpeachtreecom Structures Annuity Settlement SELL ANNUITY PAYMENT Car Insurance Quotes Colorado Annuity Settlements federal criminal defense attorney Nunavut Culture Dayton Freight Lines Hard drive Data Recovery Services DAYTON FREIGHT LINES Donate a Car in Maryland Motor Replacements Donating a Car in Maryland Donate Cars Illinois Criminal Defense Attorneys Florida PSYCHIC FOR FREE Low Credit Line Credit Cards Car Insurance Quotes Utah Life Insurance Co Lincoln mesothelioma help auto accident lawyer san francisco Forensics Online Course Online Colleges Paperport Promotional Code Online Classes Massage School Dallas Texas Psychic for Free Donate Old Cars to Charity AUTO ACCIDENT ATTORNEY Auto Mobile Insurance Quote adverse remortgage Car Insurance Quotes MN saskatchewan auto insurance cash out structured settlement Cheap Auto Insurance in VA cheap domain registration hosting Met Auto BEST CRIMINAL LAWYER IN ARIZONA PhD in counseling education personal injury attorney springfield mo Automobile Accident Attorney alabama mesothelioma lawyer Neuson Car Insurance Quotes PA Royalty Free Images Stock Car Insurance in South Dakota Webex Costs Cheap Car Insurance for Ladies accident attorneys orange county best criminal lawyer in arizona motor insurance quotes HOLLAND MICHIGAN COLLEGE chicago hair laser removal Better Conference Calls Mortgage Adviser LOW CREDIT LINE CREDIT CARDS structered settlement Virtual Data Rooms Dallas mesothelioma attorneys Auto Accident Attorney Online Stock Trading Criminal defense attorneys Florida mesothelioma suit motorcycle accident attorney sacramento domain registration yahoo Motor Insurance Quotes Car Insurance Quotes Asbestos Lung Cancer Donating a car in Maryland verizon sip NEUSON domains yahoo structured settlement sell personal injury solicitor Dedicated Hosting Dedicated Server Hosting

jueves, 4 de julio de 2013

Launcher hecho en c++ (Source Code). – Rooms – Law Firm – Criminal





El siguiente código escrito enc++nos ayudará a abrir todo tipo de archivos que queramos desde la ubicación que nosotros deseemos. Muchas veces quisiéramos iniciar cualquier programa o archivo más fácilmente (nada de eso de iniciotodos los programa carpeta del programa) ésto sin necesidad de hacer tanto esfuerzo. A través de un simple" system(" start C:\\Ruta de nuestro programa o archivo\\aplicacion.exe");"podremos iniciarlo.

main.cpp

/*
* main.cpp
*
* Created on: 04/07/2013
* Author: francves
*/

#include iostream
#include stdlib.h

using namespace std;

void launcher();

int main(){
launcher();
return 0;
}

void launcher(){
system("cls");
int opciones;
cout endl;
cout " BIENVENIDO AL LAUNCHER DEL USUARIO" endl;
cout "________________________________________________________________________________" endl;
cout endl;
cout "1 Abrir aplicacion" endl;
cout "2 Abrir el leeme" endl;
cout "3 Abrir la documentacion" endl;
cout "4 Abrir el instalador" endl;
cout "5 Cerrar aplicacion" endl;
cout "6 Cerrar el leeme" endl;
cout "0 Salir" endl;
cin opciones;
switch(opciones){
case 1:
system(" start C:\\CarpetaLauncher\\aplicacion.exe");
launcher();
break;
case 2:
system(" start C:\\CarpetaLauncher\\leeme.txt");
launcher();
break;
case 3:
system("start C:\\CarpetaLauncher\\Documentacion.pdf");
launcher();
break;
case 4:
system("start C:\\CarpetaLauncher\\instalador.exe");
launcher();
break;
case 5:
system("taskkill /IM aplicacion.exe");
launcher();
break;
case 6:
system("taskkill /IM notepad.exe");
launcher();
break;
case 0:
exit(0);
break;
default:
cout endl;
cout "Por favor ingrese una opcion valida" endl;
break;
}
system("pausenull");

}

Explicación:

Usaremos la librería"stdlib.h" para poder usar las funciones "system". Creamos un menú de opciones con elswitch casey en uno de loscaseo opciones del menú escribiremos"system(" start C:\\CarpetaLauncher\\aplicacion.exe");" para iniciar las aplicaciones, donde C: es la ruta del disco donde está la carpeta que contiene el archivo quedeseamosabrir,\\CarpetaLauncher la carpetaque contiene nuestro archivo y\\aplicacion.exe la aplicación o archivo que queremos abrir.

Por ejemplo si son fanáticos de la lectura, y quieren un launcher para sus libros favoritos lo que deben hacer es: Crear una carpeta en el discoduro y copiar todos sus libros en esa carpeta, luego, la ruta que deberían colocar sería algo comoC:\\CarpetaDeMisLibros\\LibroFavorito.pdf.

Deben saber laextensiónde sus archivos ejemplo: txt, pdf, exe, doc, zip...

Recomiendo tener todos los archivos que deseamos abrir en una misma carpeta y tener esa carpeta en el disco duro.

Por último desde el menú de opciones también podemos cerrar algunas aplicaciones, ésto con la función "system("taskkill /IM aplicacion.exe");"en pocas palabras lo que hace es "matar el proceso"que se está ejecutando, algo parecido a lo que podemos hacer con el administrador de tareas de windows. La opción 6 en el menú ejecuta la función"system("taskkill /IM notepad.exe");" ¿Que quiere decir ésto? Quiere decir que si tenemos abierto el bloc de notas éste se cerrará al ingresar el número 6 en nuestra aplicación.

Para saber los procesos de las aplicaciones que ustedes deseen asesinarcerrar solo deben iniciarlas y buscar el proceso en el administrador de tareas de windows.

World trade center footage Donate car for tax credit city college in miami Car Insurance in South Dakota workers compensation lawyer los angeles event management security donate car for tax credit Php programmers for hire Massage School Dallas Texas Bankruptcy lawyer How to Donate A Car in California Forensics Online Course Html email Dayton Freight Lines Donate Your Car Sacramento asbestos lung cancer mesothelioma attorney california Casino Donating Used Cars to Charity Donate a Car in Maryland Online casino Nunavut culture Criminal defense attorneys Florida los angeles motorcycle accident lawyer Paperport Promotional Code Royalty Free Images Stock alabama mesothelioma lawyer Mobile casino Custom WordPress theme designer MOTOR REPLACEMENTS FORENSICS ONLINE COURSE best consolidation loan student Casino reviews car insurance quotes colorado Mortgage Annuity Settlements Neuson yahoo web hosting WordPress theme designers adverse remortgage car accident lawyers los angeles Royalty free images stock Psd to html Make money online Australia accident car florida lawyer earthlink business internet att call conference Live casino DUI lawyer donate your car for money tucson car accident attorney Social media management royalty free images stock Tech school Hire php developers Car Insurance Quotes Colorado best criminal lawyer in arizona Hire php programmers Insurance Best social media platforms for business Dwi lawyer WEBEX COSTS Car Donate CHEAP CAR INSURANCE IN VIRGINIA mesothelioma claim online colledges SELL ANNUITY PAYMENT New social media platforms Criminal lawyer futuristic architecture DONATING A CAR IN MARYLAND Car insurance quotes MN Service business software HARDDRIVE DATA RECOVERY SERVICES mesothelioma symptoms DALLAS MESOTHELIOMA ATTORNEYS Sell Annuity Payment structured settlement quote best mesothelioma lawyers auto accident lawyer san francisco Social media platforms for business maritime lawyer houston car accident lawyers mesothelioma lawyer dallas Criminal defense lawyer Hire php developer Low credit line credit cards Met Auto Custom Christmas cards Php programmers Computer science classes online miami personal injury lawyer car accident lawyer san bernardino Seo companies saskatchewan auto insurance Online College Course cheap car insurance in virginia Online Christmas cards mesotheloma Criminal lawyer Miami forensics online course Paperport promotional code Cheap Domain Registration Hosting mesothelioma help Online Classes Cheap Auto Insurance in VA Business finance group WordPress hosting See more at http//wwwginfostopnet/ Futuristic Architecture DONATE CARS IN MA Learning adobe illustrator business email web hosting Seo services Business management software buy structured settlements Auto Mobile Shipping Quote Best Seo company Cheap domain registration hosting los angeles auto accident attorneys CRIMINAL DEFENSE ATTORNEYS FLORIDA structured settlements annuities benchmark lending Best social media platforms mesothelioma lawyer asbestos cancer lawsuit Seo company la personal injury lawyer Psychic for Free compare life assurance Photo Christmas cards Italian cooking school structured settlement purchasers mesothelioma charities WordPress themes for designers HOLLAND MICHIGAN COLLEGE Structures Annuity Settlement Psd to WordPress Social media campaigns Dedicated Hosting Dedicated Server Hosting Health Records Personal Health Record Social media examiner Hard drive Data Recovery Services buyers of structured settlements Car Insurance Quotes MN PHD IN COUNSELING EDUCATION fast cash for house verizon sip accident attorneys orange county Social media platforms georgia truck accident lawyer Christmas cards insurance medical temporary car insurance quotes mn Proud Italian cook World Trade Center Footage Mesothelioma Law Firm mesothelioma settlement amounts world trade center footage low credit line credit cards Online Criminal Justice Degree firm law mesothelioma CAR ACCIDENT LAWYERS NEUSON Donate Your Car for Kids Adobe illustrator classes Social media strategies STRUCTURED ANNUITY SETTLEMENT Social media tools personal injury firm NUNAVUT CULTURE Donate Car to Charity California Donate Car for Tax Credit ONLINE COLLEDGES truck accident attorney texas Donate Cars in MA Claim structured settlement sell Webex Costs Online Motor Insurance Quotes Auto Accident Attorney Asbestos Lawyers Donate Cars Illinois Better Conference Calls HOME PHONE INTERNET BUNDLE MET AUTO EMAIL BULK SERVICE holland michigan college mesothelioma trial attorney Forensics online course Life Insurance Co Lincoln Nunavut Culture Insurance Companies accident attorney san bernardino MASSAGE SCHOOL DALLAS TEXAS LIFE INSURANCE CO LINCOLN Criminal Defense Attorneys Florida structured settlement brokers ASBESTOS LAWYERS mesothelioma attorney assistance Motor Replacements phd in counseling education Donating a Car in Maryland cash out structured settlement Best Criminal Lawyers in Arizona life insurance quotes Car Insurance Quotes Utah ONLINECLASSES Holland Michigan College Online Colleges BETTER CONFERENCING CALLS car accident lawyers west palm beach lawsuit mesothelioma mesothelioma claims asbestos mesothelioma lawsuit Donate Old Cars to Charity Low Credit Line Credit Cards selling a structured settlement broward county dui lawyer Dallas Mesothelioma Attorneys Donate your Car for Money selling structured settlement WebEx costs Cheap Car Insurance in Virginia Home Phone Internet Bundle most profitable internet business PHD on Counseling Education Car Insurance Quotes Car Insurance Quotes PA Cheap car insurance in Virginia personal injury law firm Email Bulk Service Cheap Car Insurance for Ladies Register Free Domains car insurance companies pharmacist jobs in chicago Mortgage Adviser Virtual Data Rooms mesothelioma drug How to donate a car in California Automobile Accident Attorney Car Accident Lawyers Data Recovery Raid Motor Insurance Quotes Personal Injury Lawyers uk homeowner loans Asbestos Lung Cancer Injury Lawyers Personal Injury Law Firm semi truck accident lawyers lease management software