Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
making prog (place file1 file2)
Name: bulleke Date: April 10, 2005 at 03:32:52 Pacific OS: Windows XP CPU/Ram: 128 MB
Comment:
How can you call a batch-file by typing test.bat file1.txt file2.txt -- set Count=0 for /f "tokens=*" %%a in (file1.txt) do call :Newfile %%a exit /b :Newfile file2.txt set /a Count%%=2 echo %* >> file2.txt if %count%==0 echo test >> file2.txt exit /b --
Name: FishMonger Date: April 10, 2005 at 10:02:28 Pacific
Reply:
set Count=0 for /f "tokens=*" %%a in (%1%) do call :Newfile %%a exit /b :Newfile file2.txt set /a Count%%=2 echo %* >> file2.txt if %count%==0 echo test >> %2% exit /b
0
Response Number 2
Name: FishMonger Date: April 10, 2005 at 10:04:46 Pacific
Reply:
Oops, I forgot to fix each of the vars.
Replace each file1.txt with %1% Replace each file2.txt with %2%
Summary: Well I've been using VB9 to make a nice interface and stuff but then a commandline program to compress files. This program then (in the VB part) takes information from the user and then via a filestre...
Summary: Hello, this question is perhaps a unique one since I doubt anyone has ever needed something like this. It is too much to explain so I will make this as short as possible. Is there a program that is ...
Summary: That makes more sense. One piece at a time. For a file compare: ::========== fc file1 file2 if errorlevel 1 goto :different ::Here's where we do what we do when they are the same goto :end :different ...