Search found 6 matches

by totalyscrewedup
Thu Aug 15, 2013 1:28 pm
Forum: VBScript
Topic: search and copy a folder using vbscript
Replies: 11
Views: 9205

Re: search and copy a folder using vbscript

Never mind. Found the solution by running following prior the wshShell: Dim OSList, OS, UAC UAC = False If WScript.Arguments.Count >= 1 Then If WScript.Arguments.Item(0) = "elevated" Then UAC = True End If If Not(UAC) Then Set OSList = GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem") For ...
by totalyscrewedup
Thu Aug 15, 2013 8:08 am
Forum: VBScript
Topic: search and copy a folder using vbscript
Replies: 11
Views: 9205

Re: search and copy a folder using vbscript

Jvierra, that is where I actually stared my script from to make it work. We have this folder only when it's created this way. Thanks for the warning. Alex, we are poor and can't afford software. Besides, how will I learn if I don't do things the hard way? On another note, one of the parts of the scr...
by totalyscrewedup
Tue Aug 13, 2013 1:31 pm
Forum: VBScript
Topic: search and copy a folder using vbscript
Replies: 11
Views: 9205

Re: search and copy a folder using vbscript

Thank you so much! I did try double slashes in the past but failed to end the final path sub folder same as the folder being copied.
by totalyscrewedup
Tue Aug 13, 2013 1:20 pm
Forum: VBScript
Topic: search and copy a folder using vbscript
Replies: 11
Views: 9205

Re: search and copy a folder using vbscript

the whole setup is odd since we have have multiple hurdles to overcome. The first one is that the application is not an executable but rather combination of different sets of dlls that need to be copied into c:\windows, c:\windows\system32 and few more locations. That application is tied to the diff...
by totalyscrewedup
Tue Aug 13, 2013 1:01 pm
Forum: VBScript
Topic: search and copy a folder using vbscript
Replies: 11
Views: 9205

Re: search and copy a folder using vbscript

Based on that, I'm not able to copy using VMI services since I'm looking through the subfolders of the same path as I'm copying too (in reality, I'm actually copying from 5 subfolders deep and copying 2 subfolders deep). I verified that the folder with that name doesn't exist in c:\program files sin...
by totalyscrewedup
Tue Aug 13, 2013 12:06 pm
Forum: VBScript
Topic: search and copy a folder using vbscript
Replies: 11
Views: 9205

search and copy a folder using vbscript

I'm a newbie to scripting in general and after 3 weeks learning this is what I came up with to do this: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colFolders = objWMIService.ExecQuery _ ("Select * from Win3...