Is there a way to make one desktop icon do more than one thing?

I have several things I always do together, and I’d like to know how to do it.
For example, when I log on to the net, I also always want to open several window. My calendar page, my email page, and the tv listings.

Remember batch files?
I could call multiple programs with one command with a batch file.

I’d do it that way again, but I can’t figure out how to make dos read the longer file names. Also how to just quit when done.

Any ideas will be appreciated.

richman2, what you want to do is easy!

All you need to do is select the icon on your desktop, then right-click (or option-click) and choose “Open With Action…” from the pop-up contextual menu. Then…

…wait a minute? You’re not using a Mac?!?

Sorry. You’re SOL. Shoulda bought a Mac.
:stuck_out_tongue:

You could write a batch file that opens all that stuff, then make a shortcut to it. Double-clicking the shortcut would run the batch file, which would open everything else.

Arjuna34

after that right click on the icon, select ‘Program’ then check the ‘close on exit’ box and the OK.

What he wants to do is easy! All he has to do is select the icon on his desktop, open properties, and type in the commands seperated by ; . Oh, wait, he’s not using X windows? Well, no problem. Just add Linux for PowerPC to the Mac or Linux for x86 to the Windows or Linux for SPARC to Sun machine he’s using! :smiley:

Gosh, good thing he’s not stuck using some inflexible OS that only runs on one platform… :stuck_out_tongue:

Why, so he could have an overpriced ‘computer’ that doesn’t do what he needs? PC Users can BUILD their own computers.
I’ve never seen a Mac person say they BUILT their Macinslosh.

And what do I run on my PC OS??? Primarily LINUX. mwah

If all the jokers are through now, I can tell you how to do this.

  1. Make three icons with the proper internet shortcuts.
  2. Select all three with a “window.” You can do this by clicking and holding the left mouse button on a point to the top right of the three icons, then releasing the button at a point to the lower left of the icons.
  3. The little titles below the icons should now be highlighted. Now, finally, strike the enter key on your keyboard. Voila, three open windows pointing to the proper URL.
  4. Go explain to TubaDiva why you appear to have more than one screen name. Maybe you should do this first.

[Edited by UncleBeer on 10-20-2000 at 03:45 PM]

Or you can make a folder on the desktop. Drag the bookmarks from the broswer window of all the web sites you want to the open folder. Hold down CTRL & select those web sites you want to open at once & Viola! They open.

Thanks. That’s exactly what worked for me.

As to the people who suggested batch files, as explained in the question, I don’t know how to reference a long file name in a batch file.

All the people cracking jokes are showing their ignorance. Batch files are alive and well in WIN9X.

The trick for DOS to read long file names or names with spaces is to enclose it in quotes. Like:

C:\WINDOWS\MPLAYER.EXE /Play /Close “C:\Music\Feels so good\Chuck Mangione Feels so good.wav”

Although sailor’s way to handle long filenames or filenames with spaces is better, you can also use the 8.3 filename. For example,

C:\WINDOWS\MPLAYER.EXE /Play /Close C:\FEELSS~1\CHUCKM~1.WAV

You can see the 8.3 filename by going to DOS and using DIR to do a directory listing.

Arjuna34

That too. I use both ways.

I didn’t know about this trick to using long file names in batch files. Thanks, sailor, for the info.

I was immediately inspired to do a startup batch file that opens a different directory depending on what day of the week it is (tv listings, actually). It works great!

To get the day of the week, I used a trick I saw in a book called “Voodoo Windows” or something like that, and it was credited to some other book.

Create a batch file with the output of the DATE command, like this: “echo.| date > curdat.bat”. Now CALL this batch file. It tries to execute the first line of the date output, which looks something like “Current date is Sat 10-21-00”. The trick is that prior to this, you created a batch file called “current.bat”. Therefore, when you execute the first line of the DATE output, “Current.bat” will be executed with the rest of the words in the line as parameters! You can now work with the current date or day of the week.

Also, since “Current.bat” is executed, not CALLed, control never returns to curdat.bat, and the second line of the date output (“Enter new date (mm-dd-yy):”) is never executed, avoiding any problems.

This can also be used with the TIME command.

Someone was bound to get around to mentioning quoting or 8.3 syntax.
Cracking jokes is more fun. :stuck_out_tongue:

Actually, I consider the DOS command line interface a big joke all by itself :slight_smile:

Arjuna34

zgystardst,

that is quite ingenious. I did a few things like that. Spend an hour or two figuring out a way to save me a few seconds. Lots of fun :slight_smile:

Yay, Windows can almost do a crippled cron. :slight_smile:
My book on Perl devotes a few pages to writing Perl scripts headers that Windows is fooled into think are batch files with peculiar syntax so as to make your Perl executable.
Now that Windows has ActiveScript this isn’t really needed all that much, unless you’re one of the few sane people who have turned that off so as to eliminate Windows’ thoughtful automatic virus interpretation functionality.

I have uninstalled Windows Scripting Host
check out http://www.europe.f-secure.com/virus-info/u-vbs/ a good source of virus protection stuff

oops. Yes, ActiveScript is actually the windows native scripting language which is what is interpreted by Windows Scripting Host which can also pipe output to other apps (like Perl).