Solved

Desktop Shortcut for command line command

Posted on 2006-11-16
4
627 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
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 …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now