Go to Post Ahhh... the beauty of an exponential series... - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-11-2004, 23:04
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
copying shortucts in dos

ok, my former prealgebra teacher has a program called greenglobs, he happend to loose the install cd and asked me if i could write a program that would install the software for him. now i wrote 2 batch files one for windows 9x and the other for xp. but i cant get the batch file to copy shortcuts. is there anyway to do this, or is there a command in dos that will make 9x/xp happy and allow the shortcuts to work
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #2   Spotlight this post!  
Unread 20-11-2004, 23:20
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: copying shortucts in dos

A "batch file" runs out of a DOS window. I think that the DOS copy command requires 8.3 filenames with no spaces or characters.

Try to rename a file like Eta Carinae's Future.lnk to something like etac_fut.lnk and see if that works.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 20-11-2004, 23:24
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: copying shortucts in dos

my only problem is that is not able to "find" GGLobs.lnk. am i doing something wrong here the command im using is
copy GGlobs.lnk "c:\documents and settings\all users\desktop"

nevermind i figured it out
the command was supposed to be
copy GGlobs.exe.lnk "c:\documents and settings\all users\desktop"
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match



Last edited by CmptrGk : 20-11-2004 at 23:27.
  #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?
  #5   Spotlight this post!  
Unread 21-11-2004, 00:46
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: copying shortucts in dos

acutally i have written everything and have gotten it to work, but i cant post it here becasue the program is licnesed to my former school and costs over $200
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #6   Spotlight this post!  
Unread 22-11-2004, 19:19
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: copying shortucts in dos

long file name support depends on what version you use. Generally, if you enclose the path in quotes, it will work. If you can't use the long file name, you can use the 8.3 alias (xxxxxx~#.EXT, where xxxxxx is the first 6 letters of the file name, # is an index (each file with the same 6 letters each have a progressively higher index), and EXT is the first 3 letters of the extension. So "Eta Carinae's Future.lnk" would become "ETACAR~1.LNK").
As mentioned before, shortcuts have the hidden extension of LNK.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying a CD Ryan F. Chit-Chat 9 26-09-2004 10:56
ideals in FIRST robotics competitions worth copying Ken Leung General Forum 11 15-05-2003 10:42
Do's and Donts.... Useless member General Forum 13 06-02-2003 23:38


All times are GMT -5. The time now is 15:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi