Drive REmapping

General development discussion.

Moderators: Susan Smith, admin, Gabriel

John
Posts: 507
Joined: Sun Apr 26, 2009 8:27 am
Location: West Orange, NJ
Contact:

Drive REmapping

Postby John » Fri Sep 22, 2017 5:07 am

I need to change my BR Drive mapping at certain times. So I use "Config Drive" statements to set them. A problem I am encountering is that when I've already set it once for a given drive letter trying to change results in an error 1006. Simply changing the drive letter to one I haven't used yet works and shows that the command otherwise is correct. Is there a way I can reset drive letter so that I can make second or third+ Config Drive statements function like they do the first time?
John Bowman

John
Posts: 507
Joined: Sun Apr 26, 2009 8:27 am
Location: West Orange, NJ
Contact:

Re: Drive REmapping

Postby John » Fri Sep 22, 2017 9:35 am

So - I found a simple enough work around. I changed all (5,743) references to Q: in my software to env$('Q') and set that environment variable to the path instead of using a virtual drive. Gee, these environment variables sure do make a whole lot of things easier.
John Bowman

David Bohlke
Posts: 2
Joined: Mon Jun 08, 2009 9:58 pm

Re: Drive REmapping

Postby David Bohlke » Fri Sep 22, 2017 1:19 pm

Doesn't that require you to set the environment variable before starting up BR?
Not sure, but I think an easier solution would be config substitute which can be done on the fly within BR. e.g. config sub q: c:\whatever

John
Posts: 507
Joined: Sun Apr 26, 2009 8:27 am
Location: West Orange, NJ
Contact:

Re: Drive REmapping

Postby John » Fri Sep 22, 2017 2:56 pm

I am actually also using a config substitute to make fileio work. I have some default locations for data to reside (%programdata%\ACS\etc) but sometimes I do set the environment variable in my brconfig.sys.
i.e.

Code: Select all

 SetEnv Data \\LITTLE_KOI\Users\John\OneDrive\ACS\Dev-5 Data
John Bowman


Return to “General Development”

Who is online

Users browsing this forum: No registered users and 1 guest

cron