View Single Post
  #4   Spotlight this post!  
Unread 21-11-2004, 00:02
Marc P. Marc P. is offline
I fix stuff.
AKA: βetamarc
no team
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Watertown, CT
Posts: 997
Marc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond repute
Send a message via AIM to Marc P.
Re: copying shortucts in dos

You would want to use the xcopy/xcopy32 command (for WinXP and Win98, respectively) in place of copy. When run within Windows, it will preserve long file names and attributes. You will have to find the original location of the Green Globs shortcut (on the desktop or start menu, and they will be in differant place within XP and 98). With XP you can use absolute pathnames in the batch file (such as C:\Documents and Settings\Username\Start Menu\Programs\Green Globs.lnk), while in 98 you have to use the condensed version (C:\WINDOWS\STARTM~1\Progra~1\Greeng~1.lnk). Am I correct in assuming you already have the program copied somewhere (CD or otherwise), and you wish to write a batch file to install/copy the files to the proper locations?