Re: Batch file
- From: "Royce" <Royce@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Jun 2005 21:25:28 -0700
i am aware of the quotes and when to use them. correct me if i wrong, you use
them when there are spaces in the path. "%Userprofile%\Desktop\test.txt"
should work the same as %Userprofile%\Desktop\test.txt and the exit thing is
just something i have always done : ) i was unaware of the exit /b vs. exit.
learn something new everyday. so pegasus when would exit be needed?
"Pegasus (MVP)" wrote:
> I wasn't even aware of the "Title" command. Good one!
> Your code contains a small error. All your redirections should read
>
> >> "%Userprofile%\Desktop\test.txt"
>
> i.e. with the surrounding double quotes (which I'm sure you're aware of!).
> Furthermore, the "exit" command is superfluous.
>
>
> "Royce" <Royce@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:43733E19-6F67-4F01-A3EA-7316AAB0C97A@xxxxxxxxxxxxxxxx
> > Or this...
> >
> > @echo off
> > title COPYING FILES...
> > for /l %%i in (1,1,11) do echo.
> > echo Please Wait While Files Are Being Copied...
> > echo Started Copying Files On %date% At %time% >>
> > %Userprofile%\Desktop\test.txt
> > xcopy C:\test G:\backup /e /c /f /h /y >> %Userprofile%\Desktop\test.txt
> > echo Stopped Copying Files On %date% At %time% >>
> > %Userprofile%\Desktop\test.txt
> > exit
> >
> > "George Schneider" wrote:
> >
> > > I need some help on this one. I want to copy all files from my C:\test
> to
> > > G:\Backup. In addition I want to create a text file that displays the
> date
> > > and time started and date and time finished. I want to script using a
> batch
> > > file.
> > >
>
>
>
.
- Follow-Ups:
- Re: Batch file
- From: Rob
- Re: Batch file
- From: Pegasus \(MVP\)
- Re: Batch file
- References:
- Batch file
- From: George Schneider
- RE: Batch file
- From: Royce
- Re: Batch file
- From: Pegasus \(MVP\)
- Batch file
- Prev by Date: Re: Reinstall of Windows 2000
- Next by Date: Re: Batch file
- Previous by thread: Re: Batch file
- Next by thread: Re: Batch file
- Index(es):
Relevant Pages
|