• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

win2k shortcut question

I want to make a shortcut on my desktop to a file called uptimei.exe but everytime I make it the dos window just pops up and goes away really fast. If I just try to open the file by double clicking on it the same thing happens. But if I go to run, then get to the directury it is in and type uptimei it will work by telling me how long my computer has been on for. I would like to be able to make it so that I just can double click on a icon and get it to work that way. I tried making a .bat file to it but I am not that experienced at making them and it just did what the shortcut did. Anyone have any ideas on what to do?
 
Are you saying that when you right right click on the actual .exe and choose Send To | Desktop (create shortcut) the shortcut created doesn't work? That seems very strange. But, if you are using Uptime, why not just put a shortcut in the Startup folder?
 
What you're seeing is this:

You're telling the OS to start a process that runs in the command line environment. So, Windows starts up a command prompt and tells it to run uptime.exe. Uptime.exe runs and finishes. The environment is done doing what the OS told it to do, so the environment is shut down.

Try creating a batch file with "pause" as the last line and see if that'll do what you need.
 
You can also make a shortcut to cmd.exe and pass it the switch /K so it executes and remains. The full command is:

cmd.exe /K uptime.exe
 
Back
Top