Jump to content

rmarino

Active Members
  • Posts

    23
  • Joined

  • Last visited

rmarino's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you, this worked. Also, thanks for everyone else that responded. I thought since the variable $FileList was set to _FileListToArray that I could just use it that way (an array) without using a loop since it was already defined before the sleep. Thanks for the clarification. Thanks
  2. What I have to accomplish is to move files in folderA to folderB on the same file system. Files could be coming into folderA from another process running so I want to make sure that I'm not trying to move a file being written to. What I tried was use _FileListToArray to create an array of files. It works in creating the list but I also tested allowing the script to sleep for a minute while I copied a file into that folder. What I wanted was the list to copy the files into folderB without the new file I copied into folderA. But the end result was everything was copied. Is _FileListToArray not able to create a static list? Thanks for any help. #Include <File.au3> #Include <Array.au3> $sFilter = "*" $iFlag = "1" $FileList=_FileListToArray("c:\temp\",$sFilter ,$iFlag) If @Error=1 Then MsgBox (0,"","0 Files found.") Exit EndIf Sleep(60000) FileCopy ( "c:\temp\" & $FileList, "c:\test\" & $FileList)
  3. I have the same problem, if I use the function against an excel file it outputs negative numbers, but if I output the file to a txt file it works fine.
  4. No, save the file as filename.reg. The .reg extension will create an association to allow you to double click that file and make the registry entries that are in the file.
  5. Did you double click on the file that you created with notepad? That will enter the registry entries into your registry. Sorry if you did this and knew how to perform this but I had to ask. Other option is to re-install the app again, that will repair the install if it's still present or just install it once again.
  6. Each button has it's own return value that you can use to look for in your script: $s = MsgBox(2, "Test", "Test") Select Case $s = 3 MsgBox(0, "", "ABORT") Case $s = 4 MsgBox(0, "", "RETRY") Case $s = 5 MsgBox(0, "", "IGNORE") EndSelect Quick script to show how to use them
  7. You can use WinWaitActive to pause a script until the pop up is produced.
  8. Did you check to see if the executable has options that allow for a user name and password to passed to it? If not then above poster's example is good.
  9. Follow goldenix's steps but before creating the image file run the system preparation tool. This will insure that no two machine's will share the same SID. If they do and they are part of a domain you will see security and other types of issues.
  10. Before creating the image with ghost or any other imaging software run the Microsoft sys prep tool on the "golden image".
  11. Then simply use the run or runwait methods: RunWait(@ComSpec & " /c md d:\p\newfolder")
  12. You could look at these: FileOpen FileReadLine StringInStr _INetSmtpMail (I haven't used this)
  13. Do you need to do it that way? If not you can use DirCreate ("d:\p\newfolder")
  14. Yes that will work, I changed the time and it worked on my system. Same thing but using a variable to hold the time: Do $t = @HOUR &":"& @MIN Sleep(5000) Until $t > "18:30"
  15. You could use the logic, and it should work. Can you post your script so we can see where the script may have an issue?
×
×
  • Create New...