Search found 54 matches

by jdelatorre@hfinc.com
Thu Jan 10, 2008 12:08 am
Forum: VBScript
Topic: Actual vs virtual drive
Replies: 5
Views: 2999

Actual vs virtual drive

well if Windows "sees" it as a drive. And it has a drive letter then how it gets created is moot. Use Othman's query but echo out the "Drivetype" property as this is the property which will tell you the actual "Type". Using the link from MSDN that i posted earlier here ...
by jdelatorre@hfinc.com
Wed Jan 09, 2008 2:09 am
Forum: VBScript
Topic: Actual vs virtual drive
Replies: 5
Views: 2999

Actual vs virtual drive

The win32_logicaldisk class has a drivetype property that might interest you.More info on the class can be found here.http://msdn2.microsoft.com/en-us/librar ... 85).aspxBy virtual drive do you mean a mapped drive?
by jdelatorre@hfinc.com
Thu Dec 20, 2007 8:20 am
Forum: VBScript
Topic: questions about NewObjectsToday script
Replies: 3
Views: 1862

questions about NewObjectsToday script

There is a way but I always get the same result no matter what Object I use. The returned Owner is always "Domain/Administrator". This snippet is off MSDN. Set objUser = GetObject _ ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") Set objNtSecurityDescriptor = objUser...
by jdelatorre@hfinc.com
Wed Dec 19, 2007 12:39 am
Forum: VBScript
Topic: VB Script for enabling Remote Desktop
Replies: 4
Views: 3251

VB Script for enabling Remote Desktop

Completely agree with Jeff. Also here is a script that should do what you want. I'm not the author of this so i deserve no credit nor am I in an environment to fully test this. (We use GP to enable RDP) uploads/16903/script.txt
by jdelatorre@hfinc.com
Tue Dec 18, 2007 6:23 am
Forum: VBScript
Topic: WMI Problem using VBScript
Replies: 5
Views: 2813

WMI Problem using VBScript

in addition to the missing ping function like Jim has stated you also need to reset the error object to break out of your "While Loop", if not then the err.number will never equal 0. Inside your While loop if there is an error the error number doesnt get automatically reset. You have to ma...
by jdelatorre@hfinc.com
Fri Dec 14, 2007 3:57 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 13769

move and rename folder

Then changing these variables should do it.

srcFolder = folder&""&theDir dstFolder = folder&"2007 DONE"&theDir&"D"
by jdelatorre@hfinc.com
Thu Dec 13, 2007 11:50 pm
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 13769

move and rename folder

This should work for you. You might have to change the path to match your folder structure but I dont think you'll have much trouble with that. Set objFSO = CreateObject("Scripting.FileSystemObject") theDay = Day(Now) If Len(theDay) < 2 Then theDay = "0"&theDay 'put 0 if sing...
by jdelatorre@hfinc.com
Thu Dec 13, 2007 8:33 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 13769

move and rename folder

it will not add the "D". You will have to concat the D. You can do like this




myFolder= myFolder&""&theDir&"D"



I dont really understand what you mean buy adding Next to the end of each process.

by jdelatorre@hfinc.com
Thu Dec 13, 2007 6:17 am
Forum: VBScript
Topic: move and rename folder
Replies: 22
Views: 13769

move and rename folder

Use the ObjFSO.movefolder method inside your If statement. So replace If Not objFSO.FolderExists(myFolder) Then WScript.Echo "Folder " , myFolder ,"does not exists" ON ERROR RESUME NEXTEnd If with If Not objFSO.FolderExists(myFolder) Then WScript.Echo "Folder " , myFold...
by jdelatorre@hfinc.com
Thu Dec 13, 2007 5:37 am
Forum: Wish List and Feature Requests
Topic: More Interactive when writing Powershell Scripts
Replies: 8
Views: 6295

More Interactive when writing Powershell Scripts

I'm not sure if this is already on the "Wish List", but would be EXTREMELY helpful if PrimalScript was more Interactive while scripting, similar to Powershell + code Editor/Powershell Anaylzer.For example when in PS+ code editor when typing a Grouped Expression:(get-date). the members for ...