Jump to content

mFm

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by mFm

  1. no it is not running. i close using process close and then check process existence before going further forward if it exists script stops so there is no chance that myfile.exe was running. so when file copy code is running it means myfile.exe is closed. N.B. Here i like to mention one thing as i am using the whole work in virtual environment using VMware + Guest OS is WinXP SP3 in which all the coding and running of the application happen. because it help me to easily restore to a safe point when i messed it up. as far as my knowledge it doesn't have any issue because the whole OS is running in such environment. autoit can pretty easily work too.
  2. yes i can manually copy the file into the destination folder without any problems.
  3. No i am running WinXP SP3
  4. Yes it exists.
  5. Dim $Chk = 2 $Chk = FileCopy(@ScriptDir & '\' & "MyFile.exe","C:\Program Files\My Folder\",1) if $Chk == 0 Then; 1 = success 0 = fail MsgBox(0,"Info","Copying Failed") Exit EndIf i use the above code to determine is my copying process end successfully or not. and i always get the msgbox which means unsuccessful. why don't know yet. ok first the source address or path i use is a variable one while destination path is fixed. and i also verify the source path by using the following test e.g. so i ensure that i am getting the right path or not. Dim $directory = @ScriptDir & '\' & "MyFile.exe" or Dim $directory = @ScriptDir & "\" & "MyFile.exe" [same result.] MsgBox(0,"Info",$directory) Exit the result i get is D:\_temp\_testing\MyFile.exe which is perfect 4 a source path anyone know what i was doing wrong.
  6. FileCopy(@ScriptFullPath & "myfile.exe","C:\Program Files\my folder\",1) the above line of code suppose to copy the myfile.exe to a folder in program files when its flag set to overwrite if asked. but it fails why don't know. to check the operation is done successfully or not i check its return values. and it is 0 means unsuccessful
  7. ok Thanks i will this.
  8. i use the following code to succesfully run the application. ShellExecute("MyFile.msi")
  9. i would like to copy a file place in the script directory and paste it in the another folder[Path of the folder known.]. i search in file management section of help but found nothing to useful to use. How can i accomplish this. one more thing how can i rename a file when the path is known.
  10. no hope i was to unable to run it any one else please i need to run this. your first runwait statement. all possible way that i supposed i checked. 1 . > RunWait(,\"msiexec myfile.msi,\") 2 . > RunWait(\,"msiexec myfile.msi\,") non of the above code works.
  11. thanks man i will try this and 4 your problem use [*co*de][*/*co*de] code tags to enclose your coding this way whatever u write stays that way. N.B. without asterisk
  12. I want to run a setup file and use the following code to run the file. Run("setup.msi") i also try run("setup.msi","") N.B. Both script and msi setup file are in same directory[folder] and then i save the script and run it. but nothing happens whats wrong with my code? did it run an msi file.? if not then how can i run the setup file. any alternatives.? Any idea what's wrong with my code ??? looking 4 help
  13. Thanks man i was searching 4 close now i know. thanks once again.
  14. ok here is a very simple question how can i close a file. which is only shown in system tray or showed in the process list.
×
×
  • Create New...