Search found 4 matches

by skaa
13 Jul 2016 12:33
Forum: DOS Batch Forum
Topic: Copy or Append
Replies: 20
Views: 14820

Re: Copy or Append

Code: Select all

set snfFrom=c:\Folder1\File1.txe
set snfTo=c:\Folder2\File2.txe

if exist %snfTo% goto mExist
copy %snfFrom% %snfTo%
goto mEx
:mExist
copy %snfTo%+%snfFrom% %snfTo%
:mEx
by skaa
29 Jun 2016 13:01
Forum: DOS Batch Forum
Topic: Adding different version of same file
Replies: 2
Views: 3047

Re: Adding different version of same file

Something like this: @echo BEGIN------------------------------------------------------------------------- @setlocal @set snpSource=c:\business\Batch\Exp\expExp\From @set snpTarget=c:\business\Batch\Exp\expExp\To @for %%a in ("%snpSource%\*.*") do @call :fMove "%%a" goto fMove_Ex ...
by skaa
25 Jun 2010 15:26
Forum: DOS Batch Forum
Topic: ESCAPE Character Problem
Replies: 2
Views: 3873

Re: ESCAPE Character Problem

Thank you!!! It works.
by skaa
25 Jun 2010 09:37
Forum: DOS Batch Forum
Topic: ESCAPE Character Problem
Replies: 2
Views: 3873

ESCAPE Character Problem

Hi, This code: set sfv=ab,cd set sfvi=%sfv% if [%sfvi%]==[] echo pppppppppppppppppp gives me this response: C:\business\Batch\Env\envString>set sfv=ab,cd C:\business\Batch\Env\envString>set sfvi=ab,cd cd]==[] was unexpected at this time. C:\business\Batch\Env\envString>if [ab,cd]==[] echo pppppppppp...