Solved

Desktop Shortcut for command line command

Posted on 2006-11-16
4
628 Views
Last Modified: 2012-08-14
I have a java .jar file that requires me to open a command prompt and run the following command:
D:\work\project\java -Xmx512m -jar file.jar

What I want is a desktop shortcut that I simply double click and have the command run from the command prompt and run the java .jar file.

Thanks,
John
0
Comment
Question by:Kachele
4 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 63 total points
ID: 17963074
Hi John,

open notepad ... write this command in notepad
Save it as command.bat  (NOT txt) on your desktop ... double click it to run

Cheers!
sunnycoder
0
 
LVL 11

Assisted Solution

by:ch2
ch2 earned 62 total points
ID: 17963771
1. Right-click the desktop, point to New, and then click Shortcut.
2. Type the location of the item.
    D:\work\project\java -Xmx512m -jar file.jar

3. Click Next, type a name for the shortcut, and then click Finish.
   
   
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question