Page 1 of 1 1
Topic Options
#151747 - 2005-11-17 08:37 PM Shell Xcopy fails
pfarrelli Offline
Fresh Scripter

Registered: 2005-11-16
Posts: 46
xcopy "V:\Tools\Radmin" "C:\Program Files\Radmin-cas\" /s /e /y /q

works great at command line

but

SHELL "%COMSPEC% /C xcopy "V:\Tools\Radmin" "C:\Program Files\Radmin-cas\" /s /e /y /q"

fails

invalid number of parameters AND Script Error unknown command V:\Tools etc. etc

Top
#151748 - 2005-11-17 08:43 PM Re: Shell Xcopy fails
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
you are putting " inside of "... bad juju!

Code:

SHELL '%COMSPEC% /C xcopy "V:\Tools\Radmin" "C:\Program Files\Radmin-cas\" /s /e /y /q'


Top
#151749 - 2005-11-17 08:46 PM Re: Shell Xcopy fails
pfarrelli Offline
Fresh Scripter

Registered: 2005-11-16
Posts: 46
yeah I felt that in my heart .. but then the space in PROGRAM FILES causes a problem as invalid number of parameters.

thoughts?

Top
#151750 - 2005-11-17 09:34 PM Re: Shell Xcopy fails
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The answer is before your eyes.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#151751 - 2005-11-17 09:39 PM Re: Shell Xcopy fails
pfarrelli Offline
Fresh Scripter

Registered: 2005-11-16
Posts: 46
LOL.. yeah but it would helped if i'd open them!! thanks! got it!
Top
#151752 - 2005-11-17 09:50 PM Re: Shell Xcopy fails
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Personally, I always use single quotes in Kix (unless I'm quoting contractions, like "can't") because so many command line tools are picky about wanting double quotes.

Using ' and ' to encapsulate your shell command, as Bryce shows, allows the " and " to be processed correctly.

Close your eyes - feel the KiX!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#151753 - 2005-11-17 09:53 PM Re: Shell Xcopy fails
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Quote:


....
Close your eyes - feel the KiX!
....





LOL
May the KIX be with you!
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#151754 - 2005-11-17 11:13 PM Re: Shell Xcopy fails
Stanley Offline
Starting to like KiXtart

Registered: 2004-06-03
Posts: 130
Loc: Upstate NY, USA
KIX and Ye shall find
_________________________
Taxation WITH representation isn't so hot, either!

Top
#151755 - 2005-11-17 11:55 PM Re: Shell Xcopy fails
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Amen, Brother! However, it's WHAT ye may find that worries me!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#151756 - 2005-11-17 11:57 PM Re: Shell Xcopy fails
Stanley Offline
Starting to like KiXtart

Registered: 2004-06-03
Posts: 130
Loc: Upstate NY, USA
Glenn
How exactly do you lose a 7' rocket ?
_________________________
Taxation WITH representation isn't so hot, either!

Top
#151757 - 2005-11-18 12:15 AM Re: Shell Xcopy fails
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
WIth a great deal of embarrasment.. The choice of green and yellow was not appropriate given the expanse of cornfields where it drifted to.

Perfect flight until apogee (about 6000'). The flight computer blew the tiny drouge chute out perfectly at apogee, but the force of the ejection knocked the nosecone off, deploying the main recovery chute at high altitude. Normally, the flight computer would pop the main chute at 4-500' to minimize drift. Needless to say, it can drift up to 2' for every 1' of altitude, so it may have come down over 2 miles away. Next flight will have a GPS to transmit it's Long/Lat back to me as it descends.

Anyway, it either sank quickly in the river, came down in the road and the chute snagged on a car - which dragged it miles away, or someone ran off with it with tales of alien abduction. I fear I'll never know for sure!

Hmm, you're in upstate NY? Keep your eyes out - it went down in the Pine Island area! (41:18:41.44N - 74:26:41.96W)

Here's the web page of the rocket club I belong to. Lots of cool photos.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#151758 - 2005-11-18 03:18 AM Re: Shell Xcopy fails
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Think the website needs some updates Glenn. Get a fatal error when I try to view the gallery.
Top
#151759 - 2005-11-18 06:07 AM Re: Shell Xcopy fails
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Yeah - saw that... If you look around their site, it will become clear I have nothing to do with it's design or support. I have submitted some photos for posting, though. The link to the "old gallery" still works.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#151760 - 2005-11-18 05:03 PM Re: Shell Xcopy fails
Stanley Offline
Starting to like KiXtart

Registered: 2004-06-03
Posts: 130
Loc: Upstate NY, USA
LOL
I'm at 42.77N 73.70W so I doubt it drifted this far, but I will keep my eye on the local news for any UFOs.
_________________________
Taxation WITH representation isn't so hot, either!

Top
#151761 - 2005-11-18 06:35 PM Re: Shell Xcopy fails
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Hmm, on Columbia, near Broadway? A 106 mile drift is unlikely!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.059 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org