also @ TechSpot: AMD Radeon HD 7770 & Radeon HD 7750 Review
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > Software Apps

Download Now:

how do I set up a shortcut to execute a 'dos command'?

Thread Tools Search this Thread
  #1  
Old 02-06-2004
TechSpot Member
 
Location: Buckeye, AZ
Member since: Feb 2004, 41 posts
how do I set up a shortcut to execute a 'dos command'?

would like to set up a desktop icon to execute a command at the dos prompt:

ping www.yahoo.com

Anybody know?
  #2  
Old 02-06-2004
TechSpot Evangelist
 
Location: Bridgend
Member since: Nov 2003, 2,371 posts
Fire up notepad, and do this

type...
Code:
 @echo off
%1 %2 %3 %4 %5 %6 %7 %8 %9
pause

ping <enter domain name here>

Save the file as ping_yahoo.bat, or your chosen name.

Double clicking it should ping yahoo.
  #3  
Old 02-06-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Right click on desktop, New->Shortcut
In the first window put "ping www.yahoo.com", in the second one put the name you want the shortcut to have.
  #4  
Old 02-06-2004
TechSpot Evangelist
 
Location: Bridgend
Member since: Nov 2003, 2,371 posts
That's true, and a lot easier.

Try that first. If it doesn't hold the window open, try mine.

Why must I always do things the hard way!?!? lol <it comes from forgetting or not knowing the easyway I think!>

Last edited by Spike; 02-06-2004 at 08:59 AM..
  #5  
Old 02-06-2004
TechSpot Member
 
Location: Buckeye, AZ
Member since: Feb 2004, 41 posts
cool, both work

I had sort of already figured out a version of spikes, made a batch file in c:\ and made a short cut to point to it.

But Nodsus method pretty cool, not intuitive, but slick, and lets me assign a icon, because it is still a shortcut.

BTW, I used to know a way to make the little shortcut arrow not appear on the icon, back in 98 days. can that still be done?

thanks guys
  #6  
Old 02-06-2004
TechSpot Evangelist
 
Location: Bridgend
Member since: Nov 2003, 2,371 posts
yes it can. It's a simple registry tweak I think.

Try the 98 way and see if it works.
  #7  
Old 02-06-2004
Justin's Avatar
TechSpot Guru
 
Location: Oregon, USA
Member since: Apr 2002, 1,595 posts
System specs
drumtucker: Download TweakUI for Windows XP. It is part of the PowerToys for XP suite. The option to remove the arrow from shortcuts as well as a million other useful registry tweaks are available to you there easily.

http://www.microsoft.com/windowsxp/p.../powertoys.asp


* Note: substitute for Windows 2000 if you are using such.
  #8  
Old 02-06-2004
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,165 posts
Download Internet Maniac, which combines various (otherwise DOS-started) programs like Ping, Traceroute, Finger, Whois etc.
www.sumitbirla.com/network-spy/maniac.php
  #9  
Old 02-07-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Delete HKCR\Lnkfile\IsShortcut value to remove the arrow on Windows shortcuts. I hope you are aware that doing this is a security risk?
  #10  
Old 02-10-2004
TechSpot Evangelist
 
Location: Bridgend
Member since: Nov 2003, 2,371 posts
Removing the shortcut arrow is a security risk? I didn't know that. How come?
  #11  
Old 02-10-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Because I could make a shortcut that is called "My Computer", has the appropriate icon, sits on your desktop and actually points to "format /y c:". Without the arrow you would double click that thing without a second thought.
  #12  
Old 02-10-2004
TechSpot Evangelist
 
Location: Bridgend
Member since: Nov 2003, 2,371 posts
lol. I didn't think about that!

Talk about forgetting the obvious! lol. I haven't had a good attempt at an amateur hack on my pc for ages. Could be the active response I suppose. If they get caught they get completely sut out from that IP for 10 minutes. Not to say it won't happen though.
Closed Thread

Similar Topics
Topic Replies Forum
Command prompt shortcut keys 2 Windows OS
Doom 3 Demo does not execute 2 Gaming
Certain programs won't execute/I.E. woes 14 Virus and Malware Removal
Shell execute hook 10 Virus and Malware Removal
cannot execute any programs in XP 1 Windows OS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 01:09 PM.