Robbie Allen (a list member) has some good scripts on his site
(http://www.rallenhome.com), and I think he's written a little bit about
them (evil grin)
Also, I keep a list of recommended books at:
http://www.wiredeuclid.com/modules.php?op=modload&name=books&file=index
Look both under the scripti
I keep a list of these sites - hope this helps (watch for URL wrap): (may
be dups from others in list)
http://msdn.microsoft.com/scripting -- Microsoft's scripting site
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcen
ter/default.asp -- Another Microsoft scripting sit
o:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 1:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [ActiveDir] VBscript Help
Jacqui
There are some links to ADSI and scripting resources on the ActiveDir
web site:
http://www.activedir.org/links.htm
Carlos probably has more.
One link I h
if you want "hackable" scripts etc, then a good source is
http://cwashington.netreach.net/, has lots of scripts and tools around
network administration. Most are nicely documented, so can work out how to
do things from there.
They have some resources there on undertsanding things like LDAP query
f
Jacqui
There are some links to ADSI and scripting resources on the ActiveDir web site:
http://www.activedir.org/links.htm
Carlos probably has more.
One link I have yet to put up on the ActiveDir web site is to Robbie Allen's code from
his Cookbook. This is an excellent resource and pretty muc
TECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 6:41 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [ActiveDir] VBscript Help
>
>
> Many thanks for all the pointers. I better order some of the
> books :-) and read them, QUICK!
>
> Jacqui
>
> >
Add myITforum.com to that list...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] VBscript Help
I keep a list of these sites - hope this helps
Many thanks for all the pointers. I better order some of the books :-) and read them,
QUICK!
Jacqui
> from:Gil Kirkpatrick <[EMAIL PROTECTED]>
> date:Thu, 07 Aug 2003 17:36:25
> to: [EMAIL PROTECTED]
> subject: RE: [ActiveDir] VBscript Help
>
> Alain
Jacqui,
I feel your pain; I read your e-mail and thought I had written it :-).
I went to a book store and picked up "Microsoft's Windows 2000 Scripting
Guide" I have had really good luck with it, although everything I need
isn't in there, I have been able to find what else I need on the web or
by
Alain Lissoir's two books are great:
Understanding WMI Scripting
Leveraging WMI Scripting
-gil
Gil Kirkpatrick
CTO, NetPro
-Original Message-
From: Raymond McClinnis [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 8:29 AM
To: [EMAIL PROTECTED]
Subject: RE: [Acti
I don’t see the need for a select case, but File.Exists would help.
What I would do is something like this
Dim moveName
moveName = CurrentNameOfFile
While TargetFolder.FileExists(currentNameofFile)
currentNameOfFile = currentNameofFile + Cstr(Int(Rnd * 1))
Wen
Thanks.
My real problem is, I'm not sure where to put that in my exisiting script without screwing things up
Should that be a seperate sub?
Thanks again
On 12/7/05, Brian Desmond <[EMAIL PROTECTED]> wrote:
I don't see the need for a select case, but File.Exists would help.
What I wou
if lcase(fso.getextensionname) = "eml" then
‘ Pseudo code from me
End if
Thanks,
Brian Desmond
[EMAIL PROTECTED]
c -
312.731.3132
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian
Desmond
Sent: Wednesday, December 07, 2005
7:41 PM
To: Ac
]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern
Sent: Thursday, 8 December 2005 12:00 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] VBScript help(OT)
Thanks.
My real problem is, I'm not sure where to put that in my exisiting script
without screwing things up
Should tha
Oops, I guess i didn't check my code.
before i made any changes, i get "Wrong number of arguments or invalid propery assignment:'fso.getextensionname'.
sorry.
I wonder why that is?
On 12/7/05, Ken Schaefer <[EMAIL PROTECTED]> wrote:
At the moment you have this line which does the copy:if lcase
getExtensionName()
requires you to pass it a filespec (a filename, or path to a file)
If
FSO.getExtensionName(“c:\windows\clock.avi”) = “avi” Then
‘
do foo
Else
‘
do bar
End
If
Cheers
Ken
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Beha
isn't there a way to do it without passing the full path?
i thought in my statement its implied that whatever "file" should be, it should look for an .eml ext.
thanks
On 12/8/05, Ken Schaefer <[EMAIL PROTECTED]> wrote:
getExtensionName() requires you to pass it a filespec (a filename, or path to
Tom,
if lcase(fso.getextensionname(file)) = "eml" then file.move
target
---
Rich Milburn
MCSE, Microsoft MVP -
Directory Services
Sr Network Analyst, Field Platform Development
Applebee's International, Inc.
4551 W.
Thanks alot!!
I still can't get the rename to work.
the script copies a bunch of eml files from a bunch of source sub folders. in those sub folders the files have duplicate names but because they are in sub folders, it doesn't matter until they are being copied to the single target folder
Replace your last sub:
sub filelist(grp)
for each file in grp.files
if targ.files.count>=999 then
full=true:exit for
if
lcase(fso.getextensionname(file)) = "eml" then
set objFile =
fso.getfile(file)
arrFileName = Split(objfile.Name,".")
oldname
= arrFileName(
Thanks alot!!
Unfortuantely it only seems to work when i ran it the first time.
if i kill it and run it again and it encounters a duplicate file in the source dir it throws an error-"file already exisits".
will it only work in one shot?
thanks
On 12/8/05, Rich Milburn <[EMAIL PROTECTED
fileexists is a method for FSO object
and you are attaching it to a folder object.
Try fso.fileexistsOn 12/8/05, Tom Kern <[EMAIL PROTECTED]> wrote:
Thanks alot!!
I still can't get the rename to work.
the script copies a bunch of eml files from a bunch of source sub
folders. in those s
instead of creating random, what I had done was
create a for loop, say 1..1 (fairly high number to get the unique name)
and append that number if file exists in target,
if not exists go ahead and append that number to filename for destination and exit the loop
otherwise continue to next num
Call
Randomize() to initialize the random number generation algorithm somewhere in
your script, prior to the first call to Rnd()
Could
I suggest you get the Windows Script Host 5.6 documentation:
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7B
24 matches
Mail list logo