|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 06/29/2009 at 12:09PM PDT, ID: 24531079 |
|
[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: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: |
sServMapPath = "\\fs1\shared"
If sWCTID = 62 Then
'BAZ
sFExt = "mpr"
sRemMapPath = "\\10.0.0.10\A1"
sRemDirPath = "\MP4"
'sServDirPath = "\routerprograms\BAZ"
sServDirPath = "\ENGINEERING\BAZ_MPR_MASTER"
sRemUser = "?????"
sRemPassWord = ""
Else
'IMA
sFExt = "fmc"
sRemMapPath = "\\10.0.0.11\imawop"
sRemDirPath = "\FMC"
'sServDirPath = "\routerprograms\IMA"
sServDirPath = "\ENGINEERING\IMA_FMC_MASTER"
sRemUser = "??????"
sRemPassWord = "?????"
End If
SET objShell = CreateObject("Wscript.Shell")
RemoteList = GetFileList("N:", sRemMapPath, sRemDirPath & "\*." & sFExt)
ServerList = GetFileList("Q:", sServMapPath, sServDirPath & "\*." & sFExt)
Function GetFileList(sDrive, sMapPath, sSearch)
DeleteMapDrive(sDrive)
Call MapDriveLetter(sDrive, sMapPath)
sCMD = "dir /B " & sDrive & sSearch
SET objExec = objShell.Exec("%comspec% /c " & sCMD)
WHILE objExec.Status <> WshFinished
'Wait for the command to be run completely
WEND
GetFileList = UCase(Replace(Replace(objExec.StdOut.ReadAll,Chr(13),","),Chr(10),""))
'GetFileList = objExec.StdOut.ReadAll
WHILE objExec.Status <> WshFinished
'Wait for the command to be run completely
WEND
'MsgBox("-" & GetFileList & "-")
DeleteMapDrive(sDrive)
End Function
Function DeleteMapDrive(sDriveLetter)
SET objExec = objShell.Exec("%comspec% /c net use " & sDriveLetter & " /delete /y")
WHILE objExec.Status <> WshFinished
'Wait for the command to be run completely
WEND
strResult = objExec.StdOut.ReadAll
End Function
Function MapDriveLetter(sDriveLetter, sPath)
If sDriveLetter = "Q:" Then
sCMD = "net use " & sDriveLetter & " " & sPath & " " & "????? /PERSISTENT:NO /USER:?????"
Elseif sDriveLetter = "X:" Then
sCMD = "net use " & sDriveLetter & " " & sPath & " " & "????? /PERSISTENT:NO /USER:?????"
Else
sCMD = "net use " & sDriveLetter & " " & sPath & " " & sRemPassWord & " /PERSISTENT:NO /USER:" & sRemUser
End If
sCMD = "%comspec% /c " & sCMD
'SET objExec = objShell.Exec("%comspec% /c " & sCMD)
SET objExec = objShell.Exec(sCMD)
'MsgBox("Dos Cmd: " & sCMD)
WHILE objExec.Status <> WshFinished
'Wait for the command to be run completely
WEND
strResult = objExec.StdOut.ReadAll
'MsgBox("Map Response: " & strResult)
End Function
|
Advertisement