🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #148

Re: tricky batch - help

#148
From: Robert Schmidt
Date: Sat, 11 Apr 1992 10:37
22 lines
1513 bytes
In article <92097.223002L28BC@CUNYVM.BITNET>, <L28BC@CUNYVM.BITNET> writes:
 > I am trying to find a way to prompt a user to enter a filename.  The computer
 > will then search for an existing filename and insert the filename and path
 > into a variable.  Does anyone know or have an idea how to search for the files
 > and insert their filename and path into a varialbe, if they exist or not ?
 > 
 > 
 >                                               Thanks in advance
 >                                                  - Jack -

You might try a combo of FOR %%file IN (%requestedfile) DO ....
and IF EXIST %requestedfile...  but as the details weren't very clear,
I can't give you more than this...

If you used 4DOS, a thing like that ought to be a breeze...

-- 
Regards from Robert Schmidt, PC C/asm is my game, fast graphics is my 
pain  -  Watch for my VGA/SB demo!
     e-mail to robert@solan.unit.no
 snail-mail to Stud.techn. Robert Schmidt, stud.post 170,
               Norwegian Institute of Technology, Trondheim, NORWAY
Technical Details
Message-ID: <1992Apr11.103718.898@ugle.unit.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!psinntp!psinntp!sunic!ugle.unit.no!solan1.solan.unit.no!robert
References: <92097.223002L28BC@CUNYVM.BITNET>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!psinntp!psinntp!sunic!ugle.unit.no!solan1.solan.unit.no!robert
From: robert@solan.unit.no (Robert Schmidt)
Subject: Re: tricky batch - help
Message-ID: <1992Apr11.103718.898@ugle.unit.no>
Sender: news@ugle.unit.no (NetNews Administrator)
Organization: Norwegian Institute of Technology
References:  <92097.223002L28BC@CUNYVM.BITNET>
Date: Sat, 11 Apr 92 10:37:18 GMT
Lines: 22