Jump to content

Roshith

Active Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by Roshith

  1. Thanks for the workaround! btw.. I checked the memory consumption by the process. Its just ~4k kb. And I dont get any errors as such while executing. It successfully extracted files totaling ~2 GB, then fails to extract the remaining files returning '0'. Please ignore if its a known issue..
  2. Hi, I'm trying to create an installer that extracts about 586 files (3.2 GB) to temp directory, then executes the msi file. For this, I created a script with 586 fileinstall() functions. Script runs perfectly when executed without compiling. But when executed after compiling, only 263 (~2 GB) files are extracted to the temp directory. The remaining fileinstall() functions returned 0. Is there any limit for usage of fileinstall() in a single script. If so, any work around other than creating a separate script for the remaining files. -Roshith
  3. are you sure you have write access to system32 directory?
  4. I can manually copy the file to the shared path under "username" credentials.. are there any possibilities the server restricts interaction of tools/utilities?
  5. I just re-confirmed. "username" is a domain admin account and have access to the file on local drive and also have read/write access to the shared path
  6. Hi, I have written a scan utility that scans for certain items on the machine and upload the report to shared path The utility consists of 2 exe files 1) Scanner.exe: Scanner.exe will be running under local admin credentials. This exe does the following functions 1)Scans the machine 2)Write the report in 'C:report.txt' 3)Executes fileuploader.exe with runas function (using credentials which have access to shared path) 2) Fileuploader.exe: Copy 'C:report.txt' to shared path When I execute scanner.exe, the report gets generated, but not getting copied to the shared path. The same happens when I manually do a runas for Fileuploader.exe But when I run Fileuploader by double clicking on Fileuploader.exe, the file is copied to the shared path Attached are the codes for both exe files Any tips would be of great help Thanks in advance Roshith ; ; ; ;Code for Scan $sReport = "Scan is completed" $hFile = FileOpen("C:" & @ComputerName & ".txt", 2) FileWriteLine($hFile, $sReport) FileClose($hFile) FileInstall(".FileUploader.exe", @TempDir & "FileUploader.exe", 1) RunAs("username", "domain", "password", 0, @TempDir & "FileUploader.exe", @SystemDir, @SW_HIDE) FileCopy("C:" & @ComputerName & ".txt", "ServerDir1Dir2", 1)
  7. Thats all fine.. Exe is running on other machines If required, I can share my desktop to show you the problem
  8. guinness, Code is to run a notepad Run("notepad") 1. AutoIt version - 3.3.6.1 2. Windows version - Win7 Professional 32 bit 3. Name of executable - test.exe ipb.global.registerReputation( 'rep_post_963580', { domLikeStripId: 'like_post_963580', app: 'forums', type: 'pid', typeid: '963580' }, parseInt('0') );
  9. I tried everything on that mahcine. Its not an issue with the script or AutoIt. Its machine fault. Raw script works well on that machine by presing F5. But when compiled, its not working. The same compiled exe works well on other machines Any idea?
  10. Hi, I'm facing a Weird issue from yesterday on a particular machine. Tried a lot of things, but did not get any solution. I created a script that runs a notepad. It works well when the script is not compiled (ie, when I press F5 from scite editor). But when I compile it and run the exe, it throws an error saying "Windows cannot find notepad.exe. windows cannot access the path specified. you may not have permissions to the folder". Both scite editor and the exe are run in the same credentials (Admin) Does anybody have any idea on this? Rgds Roshith
  11. $o_Submit = _IEFormElementGetObjByName($o_form, "Submit") _IEAction($o_Submit, "click")Add this to the end of your code. It may work
  12. Thanks Shaggi.. That is a good piece of knowledge
  13. Thanks for your quick reply.. Can you please explain me "in AutoIt all threads have to be created in a dll or with inline-asm" When do we use this? Can we create and export dll in AutoIt?
  14. Hi, I never scripted in Python, but pretty comfortable with AutoIt. But I understand that python works on any platform and AutoIt on Windows. But in Windows platform, is Python any better than AutoIt? in other words Are there any things which can be done only by Python and not by AutoIt on Windows or Vice versa Rgds Roshith
  15. Check this out... http://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm
  16. Insert GUISwitch($Form1) after GUICtrlDelete ($Pic1)
  17. Thank you JoHanatCent, I knew this alternative, But just wanted to know if its possible.. Thank you
  18. Hi, Is it possible to include a hyperlink in a traytip so that the link opens up when I click on it.. Rgds Roshith
  19. Thanks guinness, Toast.au3 is a good alternative for my purpose. Thanks to you and Melba23
  20. Hi, When I use traytip with timeout 20 secs, sometimes it stays for 20secs or more, but sometimes it fades away fast (less than 5 secs). What is the reason for this. Is there any work around. TrayTip("Title", "Text", 20) Sleep(30000) Roshith
  21. Hi, I'm creating a script that copy files from a network drive to C$ share of around 1000 machines for deployment purpose. So which way of copying the files will be faster. 1) Copying directly from the network drive to the share of remote machines OR 2) First Copy the files from the network to the local machine(where script runs). Then copy files from the local drive to the Shares of remote machine Assuming the files are ~500 MB Roshith
  22. Try this ControlSend("Window Name", "", "TabControlName", "^{PGDN}")
  23. Hi, I'm trying to take a value from registry. When I simply execute the script, it gives me @error as -1. But it returns value if the compiled code is executed on a different credential (Different from the Logged on user). This is what I'm trying RegRead("HKEY_CURRENT_USER\Control Panel\Desktop", "SCRNSAVE.EXE") I'm trying this on Win7 Any tips would be of great help Thanks in advance Roshith
×
×
  • Create New...