Solved

Desktop Shortcut for command line command

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

18 Experts available now in Live!

Get 1:1 Help Now