#151747 - 2005-11-17 08:37 PM
Shell Xcopy fails
|
pfarrelli
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
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
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
|
|
|
|
#151751 - 2005-11-17 09:39 PM
Re: Shell Xcopy fails
|
pfarrelli
Fresh Scripter
Registered: 2005-11-16
Posts: 46
|
LOL.. yeah but it would helped if i'd open them!! thanks! got it!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 764 anonymous users online.
|
|
|