Solved

Desktop Shortcut for command line command

Posted on 2006-11-16
4
630 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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.

Question has a verified solution.

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

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
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…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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