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.




Donate a car in Maryland Online Christmas cards How to donate a car in California low credit line credit cards Online casino Mobile casino DUI lawyer Criminal defense lawyer fast cash for house saskatchewan auto insurance Donate car for tax credit Live casino Social media tools AUTOMOBILE ACCIDENT ATTORNEY WEBEX COSTS Donate Car to Charity California emergency response plan ppt donate car for tax credit Holland Michigan College auto accident attorney Torrance diagnosed with mesothelioma Casino home phone internet bundle mesothelioma litigation Car Insurance Quotes PA Social media campaigns Php programmers mesothelioma law suits DONATE OLD CARS TO CHARITY DONATE CARS ILLINOIS auto accident lawyer san francisco Asbestos Lung Cancer Online motor insurance quotes Gas/Electricity Sell Annuity Payment Best social media platforms for business Make money online Australia st louis mesothelioma attorney structured annuity settlement DAYTON FREIGHT LINES Social media platforms for business mesothelioma Attorney Dwi lawyer DONATE CARS IN MA Casino reviews Social media strategies MESOTHELIOMA LAW FIRM anti spam exchange server Social media management mesothelioma settlements motorcycle accident attorney sacramento benchmark lending MORTGAGE ADVISER asbestos exposure lawyers quotes car structured settlement blog DONATING USED CARS TO CHARITY Seo company Psd to WordPress PhD in counseling education Seo services onlineclasses event management security Hire php developers cell cycle regulation ppt Low Credit Line Credit Cards Motor replacements Photo Christmas cards Donating a car in Maryland Cheap car insurance in Virginia Auto Mobile Shipping Quote MASSAGE SCHOOL DALLAS TEXAS maritime lawyer houston Donate Your Car Sacramento bus accident attorneys Donate your car for money Hire php programmers Car Insurance Quotes MN Hard drive Data Recovery Services Donate car to charity California cheap auto insurance in va WordPress hosting tennessee mesothelioma lawyer Criminal lawyer Low credit line credit cards car insurance companies Service business software Donate old cars to charity lawsuit mesothelioma asbestos lawyers Proud Italian cook Car Insurance Quotes Colorado mesothelioma trial attorney CAR INSURANCE IN SOUTH DAKOTA mesotheloma Php programmers for hire Royalty free images stock Hire php developer buyer of structured settlement annuity peritoneal mesothelioma Dayton freight lines Bankruptcy lawyer mesothelioma lawyer virginia Computer science classes online Better Conference Calls Learning adobe illustrator motorcycle accident lawyer san francisco World Trade Center Footage Seo companies Donate a Car in Maryland Car insurance quotes Colorado refinance with bad credit New social media platforms DONATE A CAR IN MARYLAND Business finance group Personal Injury Lawyers HOLLAND MICHIGAN COLLEGE Dallas mesothelioma attorneys Custom WordPress theme designer WordPress themes for designers Met Auto ONLINE COLLEDGES Best Seo company Tech school Business management software REGISTER FREE DOMAINS WORLD TRADE CENTER FOOTAGE Best social media platforms los angeles auto accident attorneys accident attorney san bernardino BEST CRIMINAL LAWYER IN ARIZONA Car Insurance Companies Dedicated Hosting Dedicated Server Hosting annuity payment CAR INSURANCE QUOTES MN Custom Christmas cards arizona auto accident attorney broward county dui lawyer Donate Cars Illinois motor replacements florida car insurance company Italian cooking school Automobile Accident Attorney Social media examiner Social media platforms Html email Cheap Car Insurance for Ladies Massage school Dallas Texas Christmas cards selling structured settlement hair removal washington dc Psd to html uk homeowner loans Car Donate WordPress theme designers FORENSICS ONLINE COURSE Adobe illustrator classes data recovery raid mesothelioma law firm Nunavut Culture auto accident attorney Car Insurance Quotes Utah Online College Course Mesothelioma Law Firm google adsense Donate Car for Tax Credit Donate Cars in MA How to Donate A Car in California Asbestos Lawyers donating used cars to charity Donate Your Car for Kids DONATE CAR FOR TAX CREDIT Mortgage adviser Structures Annuity Settlement verizon sip online motor insurance quotes Annuity Settlements injury lawyers west palm beach business voip solutions Business Voip Solutions what is structured settlement Dayton Freight Lines personal injury lawyer sarasota fl compare life assurance Injury Lawyers fortis health insurance temporary Motor Replacements structured settlement sell STRUCTURED ANNUITY SETTLEMENT Cheap Domain Registration Hosting structured settlemen Donating a Car in Maryland Criminal Defense Attorneys Florida anti spam appliance Best Criminal Lawyers in Arizona Life Insurance Co Lincoln Webex Costs car insurance quotes pa Online Motor Insurance Quotes Online Colleges Paperport Promotional Code donate your car for money truck accident attorney texas Donating Used Cars to Charity Online Classes Home phone internet bundle life insurance co lincoln Massage School Dallas Texas Psychic for Free Donate Old Cars to Charity HOW TO DONATE A CAR IN CALIFORNIA Dallas Mesothelioma Attorneys mortgage adviser average mesothelioma settlement Donate your Car for Money Cheap Auto Insurance in VA adverse remortgage Forensics Online Course Home Phone Internet Bundle Email Bulk Service PHD on Counseling Education Neuson Royalty Free Images Stock structured settlement brokers primary pulmonary hypertension mesothelioma charities houston tx auto insurance Car Insurance in South Dakota ANNUITY SETTLEMENT AUTO ACCIDENT ATTORNEY Criminal lawyer Miami Cheap Car Insurance in Virginia workers compensation lawyer los angeles HARDDRIVE DATA RECOVERY SERVICES Register Free Domains car accident lawyers west palm beach buy structured settlements structured settlement need cash now miami personal injury attorney los angeles motorcycle accident lawyer Futuristic Architecture Mortgage Adviser Virtual Data Rooms asbestos lung cancer Criminal defense attorneys Florida Auto Accident Attorney Car Accident Lawyers Data Recovery Raid Motor Insurance Quotes

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.

Online Classes WORLD TRADE CENTER FOOTAGE donate old cars to charity Best Criminal Lawyers in Arizona Social media management Online casino donate your car for money Donate your car Sacramento dallas mesothelioma lawyer canada personals yahoo Auto Mobile Insurance Quote Italian cooking school selling my structured settlement Criminal defense lawyer futuristic architecture Social media platforms for business CAR INSURANCE QUOTES UTAH Donate car for tax credit Make money online Australia DONATING USED CARS TO CHARITY asbestos lung cancer Casino mesothelioma lawyer asbestos cancer lawsuit benchmark lending Car Insurance Quotes MN Mobile casino cell cycle regulation ppt Met Auto MORTGAGE ADVISER Asbestos Lung Cancer phd in counseling education CHEAP AUTO INSURANCE IN VA Forex Trading Platform Donate Car to Charity California domain yahoo chicago hair laser removal Personal Injury Lawyers Massage school Dallas Texas tucson car accident attorney semi truck accident lawyers compare life assurance HOME PHONE INTERNET BUNDLE asbestos exposure lawyers Psychic for Free Photo Christmas cards Better Conference Calls Hire php programmers Donate your car for kids LOW CREDIT LINE CREDIT CARDS Criminal Defense Attorneys Florida Business finance group car insurance companies Car insurance quotes MN Live casino Online Christmas cards Social media strategies mesothelioma law firms DONATING A CAR IN MARYLAND Car Insurance Quotes Colorado life insurance co lincoln How to Donate A Car in California cash out structured settlement Best social media platforms for business personal injury law firm Online Motor Insurance Quotes ROYALTY FREE IMAGES STOCK Neuson washington mesothelioma attorney Email Bulk Service Mesothelioma Law Firm broward county dui lawyer Seo services harddrive data recovery services small business administration sba Casino reviews How to donate a car in California structured settlement need cash now Hire php developers STRUCTURED ANNUITY SETTLEMENT mesothelioma information DUI lawyer Best social media platforms Seo company Cheap Car Insurance for Ladies offshore accident lawyer EMAIL BULK SERVICE Annuity Settlements att call conference Social media examiner Dayton Freight Lines mesothelioma attorney assistance lawsuit mesothelioma verizon sip Business management software CAR INSURANCE QUOTES PA adverse remortgage SELL ANNUITY PAYMENT New social media platforms WordPress hosting boca raton personal injury attorney Insurance Companies Dwi lawyer Criminal lawyer Cheap car insurance in Virginia Service business software Donate car to charity California Car Accident Lawyers Php programmers Hire php developer Car insurance in South Dakota Bankruptcy lawyer refinance with poor credit bus accident attorneys Php programmers for hire Data Recovery Raid Psd to html mesothelioma charities car insurance in south dakota Futuristic Architecture structured settlement investments Adobe illustrator classes Donate Cars in MA Computer science classes online Seo companies criminal defense attorneys florida NUNAVUT CULTURE mesothelioma compensation Cheap domain registration hosting Life Insurance Co Lincoln Christmas cards mesothelioma drug mesothelioma personal injury lawyers DONATE YOUR CAR FOR KIDS sell my structured settlement georgia truck accident lawyer Car Insurance Quotes Utah Custom WordPress theme designer california motorcycle accident lawyer Best Seo company structured settlements annuities motorcycle lawyer los angeles CAR INSURANCE QUOTES COLORADO mesothelioma ct mesothelioma attorney directory mesothelioma settlement amounts Custom Christmas cards Better conferencing calls Business Voip Solutions Car Insurance Companies CHEAP CAR INSURANCE IN VIRGINIA WordPress themes for designers Psd to WordPress Learning adobe illustrator Cheap Auto Insurance in VA mesothelioma settlements amounts Donating Used Cars to Charity personal injury lawyer sarasota fl forensics online course Social media platforms Tech school how to donate a car in california DONATE CARS IN MA ashely madis Html email Forensics online course personal injury lawyer injury lawyer houston tx FORENSICS ONLINE COURSE Proud Italian cook car insurance quotes Donate Cars Illinois business email web hosting structured settlement blog Online Criminal Justice Degree Donate Car To Charity CALIFORNIA mesothelioma personal injury firm WordPress theme designers Donate Old Cars to Charity Sell Annuity Payment Social media tools PSYCHIC FOR FREE Social media campaigns los angeles auto accident attorneys mesothelioma attorney structured settlement broker Donate Car for Tax Credit mesothelioma law suit Donate Your Car Sacramento Royalty Free Images Stock Donate Your Car for Kids miami personal injury lawyer Asbestos Lawyers Structures Annuity Settlement refinance with bad credit Nunavut Culture Low Credit Line Credit Cards massage school dallas texas Hard drive Data Recovery Services Donate a Car in Maryland federal criminal defense attorney dallas mesothelioma attorneys Motor Replacements Cheap Domain Registration Hosting mesothelioma suit Donating a Car in Maryland Health Records Personal Health Record life insurance quotes los angeles motorcycle accident lawyer Car insurance quotes pa car insurance quotes mn alcohol rehab center in florida Holland Michigan College Online Colleges Paperport Promotional Code World Trade Center Footage Massage School Dallas Texas DONATE YOUR CAR SACRAMENTO workplace accident attorney mesothelioma law suits HOLLAND MICHIGAN COLLEGE Dallas Mesothelioma Attorneys Online motor insurance quotes Donate your Car for Money hair removal washington dc structured settlemen Forensics Online Course Home Phone Internet Bundle structured settlement purchasers PHD on Counseling Education World trade center footage Car Insurance Quotes PA Dayton freight lines Car Insurance in South Dakota Webex Costs accident lawyers in los angeles personal injury attorney torrance Automobile Accident Attorney Cheap Car Insurance in Virginia Register Free Domains VIRTUAL DATA ROOMS AUTO ACCIDENT ATTORNEY Mortgage Adviser auto accident attorney business voip solutions Car Donate domains yahoo Virtual Data Rooms accident attorneys orange county Paperport promotional code