smbd overspawning problems

Darrin M. Gorski dgorski at
Fri Mar 20 16:25:42 GMT 1998

FYI: Here's the (perl32: see script I used to
disable 'shortcut tracking' on our Win95 clients. It's short.

-- snip --
@REM = ' Hide DOS BATCH code from perl
g:\sys\srladd\utl\perl %0
goto end
print "Locating shortcuts...";
$COMMAND = "$ENV{'windir'}\\ /c dir /s /b "
 . "$ENV{'windir'}\\*.lnk";
open(DIR,"$COMMAND|") ||
        die "Can\'t exec $!\n";
close DIR;
print "\nUpdating shortcuts...";
foreach (@LINKS) {
  $FILE = $1;
  $PATH = $`;
  chdir ($PATH) || warn "Can\'t chdir() to $PATH: $!\n";
  system("g:\\sys\\srladd\\utl\\shortcut.exe -s \"$FILE\"");
print "\nDone.\n";


"I have no special gift. I am only passionately curious." - A. Einstein

Darrin M. Gorski, Research Computer Systems Network Support
Scientific Research Laboratories, Ford Motor Company
Internet: dgorski at | Tel/Fax: +1 (313) 248-3753

More information about the samba mailing list