Advertisement
Advertisement
| 08.29.2008 at 12:57PM PDT, ID: 23689979 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: |
CopyFile "\\tuldc01\EOneActiveXapplets\jdeexpimpU\jdeexpimp.inf", "c:\windows\", "True"
CopyFile "\\tuldc01\EOneActiveXapplets\jdeexpimpU\jdeexpimpU.ocx", "c:\windows\", "True"
CopyFile "\\tuldc01\EOneActiveXapplets\jdewebctlsU\jdewebctls.inf", "c:\windows\", "True"
CopyFile "\\tuldc01\EOneActiveXapplets\jdewebctlsU\jdewebctlsU.ocx", "c:\windows\", "True"
RunCmd "C:\windows\system32\RegSvr32 c:\windows\jdeexpimpU.ocx /s"
RunCmd "C:\windows\system32\RegSvr32 c:\windows\jdewebctlsU.ocx /s"
Sub CopyFile(SourceFile, DestinationFolder, Overwrite)
'Copy File. Note that Copy File will fail if destination has the read-only attribute set, regardless of the value of overwrite.
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(SourceFile) Then
If Right(DestinationFolder, 1) <> "\" Then DestinationFolder = DestinationFolder & "\"
On Error Resume Next
fso.CopyFile SourceFile, DestinationFolder, Overwrite
If Err.Number <> 0 Then WScript.Echo "Can not copy file """ & SourceFile & """ to folder """ & DestinationFolder& """." & _
Chr(13) & Chr(10) & "Reason: " & Err.Description & "."
Else
WScript.Echo "Can not copy file """ & SourceFile & """ to folder """ & DestinationFolder& """." & _
Chr(13) & Chr(10) & "Reason: Source """ & SourceFile & """ not found."
End If
Set fso = Nothing
End Sub
Sub RunCmd(Command)
'Runs a specified command.
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run Command
Set objShell = Nothing
End Sub
|