Page 1 of 1 1
Topic Options
#33570 - 2002-11-26 06:10 PM Copy switch
KiXtart_Freshman Offline
Fresh Scripter

Registered: 2002-11-21
Posts: 22
Need help with something... I'm trying to place a [/v] switch for the "copy" command. But whenever I use the switch, it doesn't copy. When I leave off the switch, it works. What am I doing wrong?

code:
Copy "S:\DIR\CODIR\zipdat.out" $HD_DRV+"\CODIR\DIR\OUT" /v

Thanks in advance. [Confused]

Top
#33571 - 2002-11-26 06:19 PM Re: Copy switch
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, in my KiX manual the only switch is /h. Were did you come up with a /v switch?

{edit} and I see Waltz was kind enough to excerpt it but then removed it. [Confused]

[ 26. November 2002, 18:23: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33572 - 2002-11-26 06:24 PM Re: Copy switch
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Even looking at Copy /? or Xcopy /? we don't see the /v switch either..

Hmm..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33573 - 2002-11-26 06:25 PM Re: Copy switch
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might want to check the KiXtart Manual before posting here. So far, all of your questions could have been answerd by
A) Checking the KiXtart Manual for KiXtart functions/commands
B) Checking the command help for shell commands by typing ' /?', e.g. 'copy /?' at the Command Prompt.

[ 26. November 2002, 18:27: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#33574 - 2002-11-26 06:26 PM Re: Copy switch
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Oh Kent... really?

quote:
C:\>copy /?
Copies one or more files to another location.

COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]

source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
...

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33575 - 2002-11-26 06:30 PM Re: Copy switch
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doh! [Embarrassed]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33576 - 2002-11-26 06:31 PM Re: Copy switch
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
code:
Copy "S:\DIR\CODIR\zipdat.out" $HD_DRV+"\CODIR\DIR\OUT"
If @error <> 0
"Copy failed with "+@error+" "+@serror
EndIf

_________________________
We all live in a Yellow Subroutine...

Top
#33577 - 2002-11-26 06:35 PM Re: Copy switch
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Newbie,
See how much bandwidth you're wasting on an RTFM issue...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33578 - 2002-11-26 06:37 PM Re: Copy switch
KiXtart_Freshman Offline
Fresh Scripter

Registered: 2002-11-21
Posts: 22
I guess I assumed that I could use copy with the same switch in dos. Guess I was wrong. Thanks.
Top
#33579 - 2002-11-26 06:37 PM Re: Copy switch
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
If you want to to use the "/v" switch then you must invoke the command that uses it. The KiXtart "Copy" command does not use that switch. The DOS "Copy" command does. That means that you will have to use SHELL or RUN to invoke an external command/program.

You have to learn the difference between a KiXtart command and an operating system/DOS command or utility and when to use each.

[ 26. November 2002, 18:39: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33580 - 2002-11-26 06:42 PM Re: Copy switch
KiXtart_Freshman Offline
Fresh Scripter

Registered: 2002-11-21
Posts: 22
I'm sorry if I'm making everyone mad by posting dumb questions, but I thought the point of this "starters" forum was to post/answer questions for beginners? [Wink] Thanks again.

[ 26. November 2002, 18:45: Message edited by: KiXtart_Newbie ]

Top
#33581 - 2002-11-26 06:50 PM Re: Copy switch
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You are correct that "starters" is the place to get basic questions answered. But you also have to realized that the basic lesson for any IT professional is to do some due diligence in understanding how and where to get the info.

We are more then willing to help with problems related to the interpretation of documentation and the giving general advice on how to approach a problem, but you shouldn't use the board as an on-line manual.

I tried in my last post to give you the piece of info that seemed relevant. That being that KiXtart and the DOS environment share command and possibly function names. You need to read sufficiently to understand that and which commands/functions might be affected.

Feel free to post as often as necessary.

[ 26. November 2002, 18:51: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33582 - 2002-11-26 07:03 PM Re: Copy switch
KiXtart_Freshman Offline
Fresh Scripter

Registered: 2002-11-21
Posts: 22
I just wanted to say thank you Howard and everyone for your help. And I apologize to everyone else whom I may have offended from my posts. I guess I'll just have to try and research harder before I post. But unlike some of you who have been doing these things for years, I'm a new graduate. And apparently, I was not thought anything about DOS or Kixtart in school. So my means of learning includes the manual and this board. Thanks for everyone's patience. [Smile]
Top
#33583 - 2002-11-26 07:06 PM Re: Copy switch
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Howard... are you trying to contest Les' "The Grumpiest Old Poster" title.

We may have to get you two to the WWF, for the next Summer Slam

[Big Grin]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#33584 - 2002-11-26 07:11 PM Re: Copy switch
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The last couple threads should have toughened your hide somewhat. [Razz]

When you decide you know enough to change your name from *_Newbie to *_PowerUser and look back to these threads, you'll have a better understanding of why things are what they are.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33585 - 2002-11-26 07:14 PM Re: Copy switch
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
HEY! I resemble... er... resent that remark!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.076 seconds in which 0.034 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