On Sun, 28 Oct 2007 22:31:12 +0100, "Pegasus \(MVP\)" <> wrote:
>
>"RScotti" <> wrote in message
>news:.. .
>> On Sun, 28 Oct 2007 19:09:20 +0100, "Pegasus \(MVP\)" <>
>> wrote:
>>
>>>
>>>"RScotti" <> wrote in message
>>>news: ...
>>>>
>>>> On Sun, 28 Oct 2007 16:46:36 +0100, "Pegasus \(MVP\)" <>
>>>> wrote:
>>>>
>>>>>
>>>>>"RScotti" <> wrote in message
>>>>>news: om...
>>>>>> Hi,
>>>>>> Is there some kind of a switch I can I have in my bat file that would
>>>>>> show
>>>>>> the target destination also rather than just
>>>>>> the source when it displays the CMD window?
>>>>>>
>>>>>>
>>>>>> From this:
>>>>>> C:\users\rls\Agent\Data\00000002.IDX
>>>>>>
>>>>>> To something like this:
>>>>>> C:\users\rls\Agent\Data\00000002.IDX D:\Agent\Data\00000002.IDX
>>>>>>
>>>>>>
>>>>>> Have a good day,
>>>>>> RScotti
>>>>>>
>>>>>> remove "nospam" in order to email me.
>>>>>
>>>>>"Source" for what? "Target" for what? In order to have
>>>>>a source and a target, you need some command, not
>>>>>just a Command Prompt.
>>>>>
>>>>
>>>> Hi Pegasus,
>>>> Not sure I understand you.The above command is from the bat file <snip>
>>>
>>>Which "above command"? I am unable to see one!
>>>
>> I don't think it is a "command" I believe it is a string or something like
>> that in my bat file.
>>
>> This is what I see now in the output CMD window
>> C:\users\rls\Agent\Data\00000002.IDX
>>
>> This is what I want to see in the output CMD window.
>> C:\users\rls\Agent\Data\00000002.IDX D:\Agent\Data\00000002.IDX
>>
>> I am not experienced in these things so I don't know if I am using the
>> right wording or terminology but you should see
>> from my information what I want?
>>
>> Have a good day,
>> RScotti
>>
>> remove "nospam" in order to email me.
>>
>
>When you open a Command Prompt then the prompt reflects
>the current "working directory". Here are some examples:
>c:\>
>c:\Documents and Settings\Agent\My Documents>
>C:\users\rls\Agent\Data\00000002.IDX>
>
>You say that you want to see something like
>C:\users\rls\Agent\Data\00000002.IDX D:\Agent\Data\00000002.IDX
>and you say that the first string should be the source, the other
>the destination. This makes no sense. Assume that you're standing
>at the entrance of the Empire State Building. Your "working
>directory" would now be
>C:\Empire State Building\Front Entrance>
>
>Since you're not moving, how can there be a destination?
>
>If you're running a batch file then it would be a good idea
>to post your batch file in order to clarify your question.
>
I already gave it to you at 1:56 PM today BUT Andrew answered my question. I guess he understood what I meant.
>To show the full source and destination, add a /f paramter to the XCOPY
>command. For example, change:
>
> xcopy /s /y /d /h /c "C:\users\rls\Agent" "K:\Agent\"
>
>to
>
> xcopy /s /y /d /h /c /f "C:\users\rls\Agent" "K:\Agent\"
>
>Repeat for each of the xcopy commands.
>
>At a command prompt, type "xcopy /?" to see all the options for the xcopy
>command.
>
>Hope it helps,
>
>--
>Andrew McLaren
Have a good day,
RScotti
remove "nospam" in order to email me.
|