Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: captedgar
  • Content: Threads
  • Order by date
  1. captedgar

    Eliminate spaces

    Hi there I'm trying to eliminate spaces when creating a folder through my scripts. One of the section has a line called Name=WScript.stdin.ReadLine().replace(/ +/,''); which pass "Name" value to another function to create a folder and name it accordingly. For some reason when i had the...
  2. captedgar

    Assembly Registry

    Hi there One Section of my script is as follows if(!strDestFile.search(/.*\.dll$/)) { if(!strSourceFolder.endsWith("Folder1")) { UnregisterVBAssembly(strDestFile); } else { UnRegisterDotNetAssembly(strDestFile); } } How do i go about editing the above section so that when both .Net and VB...
  3. captedgar

    OpenTextFile Issue

    Hi there One of the lines of my code is as follows var objTestFile=x.OpenTextFile(strDir, ForReading,false); What this does is opens a temp file within a shared folder and performs the required task. For some strange reason, if i include a space in the name of the shared folder. For ex: "Test...
  4. captedgar

    objNetwork query

    Hi there I have one mapped network drive to my PC at home. i call it the V Drive i came across a Jscript which had the following line when EnumNetworkDrives Method was initiated var x = objNetwork.EnumNetworkDrives(); for(i = 1; i < x.length; i += 2) {...
  5. captedgar

    JScript Split Method

    Hi there I'm trying to figure out what the following syntax for split means in the following line of the code arrTest[0].split('/')[0] what does ('/')[0] means in split('/')[0]? please can anyone explain
  6. captedgar

    passing arguments

    Hi there I need help passing extra arguments to one of the function in my script. The code below is one of the functionality of the script and it creates Log Folder function CreateNewLogSubDir() { var strSubdirName=''; strSubdirName=WScript.Arguments.Named.Item'New')...
  7. captedgar

    read array from a text file

    Hi there I need guidance or help please on the following script. See below only a segment code which i need guidance for Set objFSO = CreateObject("Scripting.FileSystemObject") strTmpName = "Report.log" Set objScript = objFSO.CreateTextFile(strTmpName) arrComputers =...
  8. captedgar

    finding files

    Hi there I'm a newbie to programming but very much willing to work hard and try. We have about 100 servers and on each servers we have the g drive and e drive. early this year there were some temp files dumped all over the 100 servers under variuos folders and subfolders so i have been assigned...

Part and Inventory Search

Back
Top