Prev | Current Page 469 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

ExpandEnvironmentStrings(???%COMPUTERNAME%???);
var UserName = Shell.ExpandEnvironmentStrings(???%USERNAME%???);
var DateTime = new Date();
// Obtain the list of file specifications.
WScript.Echo(???Locating temporary files to delete.???);
var DirSpec = FSO.OpenTextFile(???DelFiles.TXT???, 1);
// Process each entry in the file.
while (!DirSpec.AtEndOfStream)
{
// Get a single file specification.
var ThisSpec = DirSpec.ReadLine();
// Process the directory specification.
WScript.Echo(???Adding database values for ??? + ThisSpec);
Shell.Run(
???Cmd /C Dir ??? + ThisSpec + ??? /B /S > TmpDirFiles.TXT???, 0, true);
// Open the file containing the individual file entries.
var Files = FSO.OpenTextFile(???TmpDirFiles.TXT???, 1);
// Open the CSV file to accept the file entries.
var Output = FSO.OpenTextFile(???Output2.CSV???, 8, true);
// Process each of the file entries in turn.
while (!Files.AtEndOfStream)
{
// Get an individual file entry.
var File = Files.ReadLine();
// Create the CSV file entry. Begin with the computer name and
// the username.
Output.Write(???\??????);
Output.Write(CompName);
Output.Write(???\???,\??????);
Output.


Pages:
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
Rowy noclegi męskie skarpetki rowerowe wycieczki do Skandynawii pity mapa Niemiec