Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Using "enviroset" in DOS Batch File
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jill McCrea  
View profile  
 More options Jul 20 1999, 3:00 am
Newsgroups: microsoft.public.basic.dos
From: "Jill McCrea" <mcc...@tdbank.ca>
Date: 1999/07/20
Subject: Using "enviroset" in DOS Batch File
Can anyone tell me of a good, resourceful place to go on the internet to
find out how to use "enviroset" in a DOS batch file?  I need to write a
batch program (and obviously I'm a newbie) that will call a setup.exe (no
problem) but then I need the batch program to search the machine for a
specific text file and then based on whether or not the text file was found,
I need to set a DOS variable to yes/no, true/false whatever, to represent
finding/not finding the text file.
Much thanks,
Jill
mcc...@tdbank.ca

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Robyn  
View profile  
 More options Jul 20 1999, 3:00 am
Newsgroups: microsoft.public.basic.dos
From: Phil Robyn <pro...@uclink4.berkeley.edu>
Date: 1999/07/20
Subject: Re: Using "enviroset" in DOS Batch File

Jill McCrea wrote:
> Can anyone tell me of a good, resourceful place to go on the internet to
> find out how to use "enviroset" in a DOS batch file?  I need to write a
> batch program (and obviously I'm a newbie) that will call a setup.exe (no
> problem) but then I need the batch program to search the machine for a
> specific text file and then based on whether or not the text file was found,
> I need to set a DOS variable to yes/no, true/false whatever, to represent
> finding/not finding the text file.
> Much thanks,
> Jill
> mcc...@tdbank.ca

What is 'enviroset'?  What version of 'DOS' (i.e., Windows) are you
using?  An excellent source of information is the alt.msdos.batch
newsgroup.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erol Ozbek  
View profile  
 More options Jul 21 1999, 3:00 am
Newsgroups: microsoft.public.basic.dos
From: "Erol Ozbek" <ero...@aidata.com.tr>
Date: 1999/07/21
Subject: Re: Using "enviroset" in DOS Batch File
Dear Jill,
As I am no programmer, I am not sure what you mean, but for verifying the
existence of a file you can use the "ifexist" command of DOS:

ifexist <drive, path, filename> then <whatever command>

(I used it in DOS 6, but a warning: When I tried it with diskettes it worked
only if any diskette was in drive A: and if A: was empty, the batch file
came to a halt. Probably you can fix that, using errorlevel or error code
returns.

Make it easy,
Erol

Jill McCrea <mcc...@tdbank.ca> wrote in message

news:eUvzM7u0#GA.222@cppssbbsa03...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Outsider (6.22/3.11)  
View profile  
 More options Jul 22 1999, 3:00 am
Newsgroups: microsoft.public.basic.dos
From: "Outsider (6.22/3.11)" <nob...@nowhere.com>
Date: 1999/07/22
Subject: Re: Using "enviroset" in DOS Batch File

Jill McCrea wrote:

> Can anyone tell me of a good, resourceful place to go on the internet to
> find out how to use "enviroset" in a DOS batch file?  I need to write a
> batch program (and obviously I'm a newbie) that will call a setup.exe (no
> problem) but then I need the batch program to search the machine for a
> specific text file and then based on whether or not the text file was found,
> I need to set a DOS variable to yes/no, true/false whatever, to represent
> finding/not finding the text file.
> Much thanks,
> Jill
> mcc...@tdbank.ca

Here's an example for the c drive.

DIR/A-D/B/S c:\*.* |FIND.EXE "filename.any" >nul
IF not errorlevel=1 SET found=yes

Regards,
Outsider


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »