smbd overspawning problems
Darrin M. Gorski
dgorski at ford.com
Fri Mar 20 16:25:42 GMT 1998
FYI: Here's the (perl32: see http://www.activestate.com/) script I used to
disable 'shortcut tracking' on our Win95 clients. It's short.
-- snip --
@REM = ' Hide DOS BATCH code from perl
@ECHO OFF
g:\sys\srladd\utl\perl %0
goto end
';
print "Locating shortcuts...";
$COMMAND = "$ENV{'windir'}\\command.com /c dir /s /b "
. "$ENV{'windir'}\\*.lnk";
open(DIR,"$COMMAND|") ||
die "Can\'t exec command.com: $!\n";
@LINKS = <DIR>;
close DIR;
print "\nUpdating shortcuts...";
foreach (@LINKS) {
s/\r?\n?$//;
/([^\\]+)$/;
$FILE = $1;
$PATH = $`;
chdir ($PATH) || warn "Can\'t chdir() to $PATH: $!\n";
system("g:\\sys\\srladd\\utl\\shortcut.exe -s \"$FILE\"");
}
print "\nDone.\n";
__END__
:end
[Darrin]
--
"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 ford.com | Tel/Fax: +1 (313) 248-3753
More information about the samba
mailing list