Search the Community
Showing results for tags 'shell.application'.
Found 2 results
I have a folder A ( C:\FolderA ), It contains many files : C:\FolderA\1.jpg C:\FolderA\2.jpg C:\FolderA\3.jpg ... I want to copy the folder A to the folder B ( C:\FolderB ) like follow : C:\FolderB\1.jpg C:\FolderB\2.jpg C:\FolderB\3.jpg ... I do not want to use 'DirCopy'，although this code can help me achieve my request: $SourceDir = 'C:\FolderA' $Destdir = 'C:\FolderB' DirCopy($SourceDir,$Destdir,1) I want to use 'Shell.Application ' instand ,so this is my code as follow: $SourceDir = 'C:\FolderA' $Destdir = 'C:\FolderB' $Shell = ObjCreate("Shell.Application") $Shell.NameSpace($Destdir).MoveHere($SourceDir, 16) My problem is : when i use 'Shell.Application ' , The folder B turns this way： C:\FolderB\FolderA\1.jpg C:\FolderB\FolderA\2.jpg C:\FolderB\FolderA\3.jpg ... what i need is: C:\FolderB\1.jpg C:\FolderB\2.jpg C:\FolderB\3.jpg ... so can you help me ?
I have been working on an script for work now for quite some time and I finally worked through all my bugs and have the script working great on my desktop. My ultimate goal however is to run this script on top of another web app as part of a Citrix published app. However it looks like _IEAttach doesn't want to recognize any browser instances when ran as a published app in Citrix. It runs fine if I login to Citrix and run it from a desktop. I found this old thread, but it looks like it was never resolved. '?do=embed' frameborder='0' data-embedContent>> I have requested authorization to load AutoIT and sciTE on the Citrix server, but I have not heard back from the admin yet. I do have a folder on the Citrix server where I can copy my EXEs to for testing. I'm using straight AutoIT help examples below to show the issues I am seeing so that they will be easy to recreate. When I compile the WinList HelpFile Example and run it from the Citrix server it sees my browser instances as windows: #include <MsgBoxConstants.au3> Example() Func Example() ; Retrieve a list of window handles. Local $aList = WinList() ; Loop through the array displaying only visable windows with a title. For $i = 1 To $aList If $aList[$i] <> "" And BitAND(WinGetState($aList[$i]), 2) Then MsgBox($MB_SYSTEMMODAL, "", "Title: " & $aList[$i] & @CRLF & "Handle: " & $aList[$i]) EndIf Next EndFunc ;==>Example But when I compile and run one of the HelpFile _IEAttach examples (below) and run it from the Citrix server, it immediately errors out with: Line 201 (File "M:StickyNotesIEInstance.exe" ): Error: Variable must be of type "Object". #include <IE.au3> #include <MsgBoxConstants.au3> Local $aIE $aIE = 0 Local $i = 1, $oIE While 1 $oIE = _IEAttach("", "instance", $i) If @error = $_IEStatus_NoMatch Then ExitLoop ReDim $aIE[$i + 1] $aIE[$i] = $oIE $aIE = $i $i += 1 WEnd MsgBox($MB_SYSTEMMODAL, "Browsers Found", "Number of browser instances in the array: " & $aIE) I am really so close on this and I would really appreciate any help you guys could spare.