?
Solved

Desktop Shortcut for command line command

Posted on 2006-11-16
4
Medium Priority
?
632 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 252 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 248 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 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