1.

Solve : Trying to make a batch file need help?

Answer»

The first batch file I NEED help with is to use REPLACEABLE parameter that will accept a file name from the command line and list the contents of that file using a pipe command for example: the user types in User list the contents of the user file.doc will list and pause between pages The computer I am using is window vista Text editor is notepad++Code: [Select]@echo off
type %1 | more
echo.Done
Pause
Hope this helps
,Nick(macdad-)Doing his homework but he'll get the grade not you. HOWEVER there is a gotcha in that code which the OP may or may not discover... was that intentional? (Let's not spell it out)

Thank for the Help the code seems to work
Code: [Select]@Echo off
dir %1
Type %1 *.fil| more
pauseQuote from: mdf1 on March 19, 2009, 01:54:40 PM

Thank for the Help the code seems to work
Code: [Select]@Echo off
dir %1
Type %1 *.fil| more
pause

what is that *.fil part for?

to bring up any of the file with the ext of .fil. I tried using wild card but it brought everything up on that drive and I only need a specific ext. Quote from: Dias de verano on March 19, 2009, 12:35:07 PM
Doing his homework but he'll get the grade not you. However there is a gotcha in that code which the OP may or may not discover... was that intentional? (Let's not spell it out)



I think so too Quote from: mdf1 on March 19, 2009, 02:04:17 PM
to bring up any of the file with the ext of .fil. I tried using wild card but it brought everything up on that drive and I only need a specific ext.

You don't UNDERSTAND what a replaceable parameter is, and your teacher will see that and be able to help you, which is good.

So let's LEAVE it like that, eh folks?

i should have asked him if it was homework.

but oh well....


Discussion

No Comment Found