in reply to Re^4: VSS automation strange problem
in thread VSS automation strange problem

Are you really, really sure that you want to run the following command:

`SS Dir \"$/\" -Yadmin`

Printing out the string that Perl (and the shell) would try to run shows me:

SS Dir " " -Yadmin

... which most likely is not what you intended it to be. At least, I am unaware of Windows programs that handle newlines in their argument line well, if the shell even passes them through.

What did you expect "$/" to do?

Replies are listed 'Best First'.
Re^6: VSS automation strange problem
by Lotus1 (Vicar) on Jan 04, 2017 at 15:30 UTC

    Good catch Corion! In my suggestion on the original thread I had escaped the dollar sign so that "$/" would be passed to ss.exe. VSS commands use $/ as the root project path.

    my $cmd = "\"$sspath\\ss.exe\" Checkin \"\$/DMS MW/SCADA/Substation E +ditor F +iles/$filename\" -C\"$comment\" -I- -GL\"$checkout_path \"";

    This is likely to solve the user issues in the OP since as you pointed out the newline puts the -Yadmin option on a different command line in the command session.