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...
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...
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...
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)
{...
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
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')...
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 =...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.