cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
For reasons I need not go into, I upgraded from VSS 6.0 to VSS 2005, which the installer put in a different location. The UI works fine but it broke my script. When I try to run it now, for example (simplified):
I get the error No VSS database (srcsafe.ini) found. Set the SSDIR environment variable to the path of srcsafe.ini for your VSS database.#!/usr/bin/perl -w use strict; chdir('C:\Program Files (x86)\Microsoft Visual SourceSafe'); my $result = `SS Dir \"$/\" -Yadmin`; print $result;
I have set that environment variable and it still doesn't work, but that's not a Perl issue. The Perl issue is that when I open a command window, cd to the directory above, and execute the same command as above, it works fine and gives the expected output (with no complaints about the environment variable). So why would the script fail?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: VSS automation strange problem
by huck (Prior) on Jan 03, 2017 at 23:26 UTC | |
by cormanaz (Deacon) on Jan 04, 2017 at 00:44 UTC | |
by huck (Prior) on Jan 04, 2017 at 01:24 UTC | |
by huck (Prior) on Jan 04, 2017 at 01:47 UTC | |
by huck (Prior) on Jan 04, 2017 at 05:37 UTC | |
by huck (Prior) on Jan 04, 2017 at 06:59 UTC | |
by cormanaz (Deacon) on Jan 04, 2017 at 14:09 UTC | |
by Corion (Patriarch) on Jan 04, 2017 at 14:16 UTC | |
| |
|
Re: VSS automation strange problem
by Lotus1 (Vicar) on Jan 04, 2017 at 15:52 UTC | |
by cormanaz (Deacon) on Jan 04, 2017 at 17:01 UTC | |
by Lotus1 (Vicar) on Jan 04, 2017 at 19:44 UTC | |
by cormanaz (Deacon) on Jan 06, 2017 at 00:38 UTC | |
by Corion (Patriarch) on Jan 04, 2017 at 17:11 UTC |