View Single Post
  #1  
Old 01-05-2004, 04:44 PM
tim.bertalot tim.bertalot is online now
Registered User
 
Join Date: 01-01-1970
Posts: 8
Can't get single quotes to work properly.

I have some perl script that is designed to store a directories contents in a variable and then use it. The code works fine if run directly from a command prompt (substituting print for the LogMessage function), but when i try to run it through visual build I get no errors and nothing stored in the variable. Note the single quotes tell it to substitute the commands output for the command. And yes i intended my path separators to be "/"

my @history=`cmd.exe /c dir \"B:/3.0_history/server/windows/distro_files\" /ad /od /b`;

foreach $folder(@history)
{
$Builder->LogMessage($folder);
}

Thanks for your help!
Reply With Quote