Set problem

  • Thread starter Thread starter Peter Osawa
  • Start date Start date
P

Peter Osawa

Hi,

I'm trying to make a simple backup script:

SET INPUT = C:\MYPROJECTS
SET OUTPUT = R:\BACKUP\USERS
xcopy %INPUT% %OUTPUT% /S /C /H /R /O /Y

But it appears as INPUT and OUTPUT are empty ...

What am I missing ?

Any good tutorial about making batch scripts for Windows 2K/XP ?

TIA
 
Peter said:
Hi,

I'm trying to make a simple backup script:

SET INPUT = C:\MYPROJECTS
SET OUTPUT = R:\BACKUP\USERS
xcopy %INPUT% %OUTPUT% /S /C /H /R /O /Y

But it appears as INPUT and OUTPUT are empty ...

What am I missing ?

Any good tutorial about making batch scripts for Windows 2K/XP ?

TIA

The spaces around the equal sign are wrong.
type
echo [%input %]
and you will see [ C:\MYPROJECTS]

Some of my links, The Dos link is included becaus it is the only real
tutorial and course I know of. And the basics are also relevant.

DOS/w9x/ME
http://www.allenware.com/icsw/icswidx.htm
NT/W2K/XP------------------------------
http://www.microsoft.com/resources/...http://www.labmice.net/articles/batchcmds.htm <http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx
http://www.ss64.com/nt/index.html
http://www.commandline.co.uk/lib/treeview/index.php
http://www.uwasa.fi/~ts/http/http2.html#cmdscript
http://home.comcast.net/~stewartb/cmdprompt.html
http://www.seanet.com/~shardy/ntscript.html
http://www.robvanderwoude.com/
http://www.jsiinc.com/reghack.htm
W2K>HH windows.chm::ntcmds.htm
XP>HH ntcmds.chm

Or search these groups. Replace "your+keywords" with your keywords

http://groups.google.com/groups?group=alt.msdos.batch&q=your+keywords
http://groups.google.com/groups?group=alt.msdos.batch.nt&q=your+keywords
http://groups.google.com/groups?group=alt.msdos.batch.*&q=your+keywords
http://groups.google.com/groups?group=microsoft.public.win2000.cmdprompt.admin&q=your+keywords

or directly open the advanced Group Search page with preentered group:
http://groups.google.com/advanced_group_search?group=alt.msdos.batch
http://groups.google.com/advanced_group_search?group=alt.msdos.batch.nt
http://groups.google.com/advanced_group_search?group=alt.msdos.batch.*
http://groups.google.com/advanced_group_search?group=microsoft.public.win2000.cmdprompt.admin

If you are using internet explorer as your browser take a look here:
http://www.commandline.co.uk/searchurl/index.html
where Ritchie Lawrence lined out how to ease searching a lot.
 
Thank you

King regards !!!

Matthias said:
Peter Osawa wrote:

Hi,

I'm trying to make a simple backup script:

SET INPUT = C:\MYPROJECTS
SET OUTPUT = R:\BACKUP\USERS
xcopy %INPUT% %OUTPUT% /S /C /H /R /O /Y

But it appears as INPUT and OUTPUT are empty ...

What am I missing ?

Any good tutorial about making batch scripts for Windows 2K/XP ?

TIA


The spaces around the equal sign are wrong.
type
echo [%input %]
and you will see [ C:\MYPROJECTS]

Some of my links, The Dos link is included becaus it is the only real
tutorial and course I know of. And the basics are also relevant.

DOS/w9x/ME
http://www.allenware.com/icsw/icswidx.htm
NT/W2K/XP------------------------------
http://www.microsoft.com/resources/...http://www.labmice.net/articles/batchcmds.htm <http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx
http://www.ss64.com/nt/index.html
http://www.commandline.co.uk/lib/treeview/index.php
http://www.uwasa.fi/~ts/http/http2.html#cmdscript
http://home.comcast.net/~stewartb/cmdprompt.html
http://www.seanet.com/~shardy/ntscript.html
http://www.robvanderwoude.com/
http://www.jsiinc.com/reghack.htm
W2K>HH windows.chm::ntcmds.htm
XP>HH ntcmds.chm

Or search these groups. Replace "your+keywords" with your keywords

http://groups.google.com/groups?group=alt.msdos.batch&q=your+keywords
http://groups.google.com/groups?group=alt.msdos.batch.nt&q=your+keywords
http://groups.google.com/groups?group=alt.msdos.batch.*&q=your+keywords
http://groups.google.com/groups?group=microsoft.public.win2000.cmdprompt.admin&q=your+keywords

or directly open the advanced Group Search page with preentered group:
http://groups.google.com/advanced_group_search?group=alt.msdos.batch
http://groups.google.com/advanced_group_search?group=alt.msdos.batch.nt
http://groups.google.com/advanced_group_search?group=alt.msdos.batch.*
http://groups.google.com/advanced_group_search?group=microsoft.public.win2000.cmdprompt.admin

If you are using internet explorer as your browser take a look here:
http://www.commandline.co.uk/searchurl/index.html
where Ritchie Lawrence lined out how to ease searching a lot.
 
Back
Top