Jump to content

prmanningham

Members
  • Posts

    8
  • Joined

  • Last visited

prmanningham's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thanks, just removing the quotes from $targetDir did the trick. Thanks for your help.
  2. Hi guys, I'm trying to copy some files from our network share to workstations but I must be doing some stupid syntax error since it doesn't work : Opt("ExpandEnvStrings", 1) Local $targetDir = "%LocalAppData%"&"\Microsoft\Office\" Local $sourceDir = "\\myserver\Office 2010\officeUI" FileCopy($sourceDir&"\*.OfficeUI", "$targetDir", 1) Would you have any idea as to why this is not working? Thanks in advance!
  3. awesome, thanks for the fast support!
  4. Hi guys, I'm having some issue with arguments here. I have this batch file that works fine and I would like to convert to autoit : "\\server\setup.exe" /s /v"/qn ALLUSERS=1 LEI_SILENT=1 PIDKEY=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX LEI_ACDID_EMAIL=my@email.com LEI_ACDID_PWD=Password SERVER=server PORT=6319" Unfortunately, the quotes in the arguements seem to be causing problems : $setup = "setup.exe" Run( $setup & " /s /v"/qn ALLUSERS=1 LEI_SILENT=1 PIDKEY=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX LEI_ACDID_EMAIL=my@email.com LEI_ACDID_PWD=Password SERVER=server PORT=6319"" ) ProcessWaitClose ( $setup ) Would you have any suggestion in how to handle quotes in this context? Thanks in advance!
  5. Awesome guys, I've been able to finish my script with your help! Thanks a lot!
  6. thanks all! I tried this and I keep getting an error saying : "Array variable has incorrect number of subscripts or subscript dimension range exceeded." Shoud this be displaying each line of my CSV? #include <array.au3> #include <CSV.au3> $rc = _ParseCSV("c:testpst.csv", ";") For $i = 0 To UBound($rc) _ArrayDisplay($rc[$i]) ; You can now use the array as necessary Next
  7. Sorry for not providing enough details. First value is workstation name, second is the path to file I'm trying to process and third is the username The script needs to check if local workstation name = value1. If positive copy value2 to a network share while renaming the file to value3-%time%.pst and so on for each line. Thanks for pointing me to StringSplit. This seems to be what I was looking for
  8. Hi guys, I've tried a few UDFs to help me achieve my goal but I unfortunately didn't suceed yet. I don't know if one of you has an easy solution for the goal I'm trying to achieve. Here's what I'm trying to do : I have a csv of 1191 lines with 3 values on each lines separated by ";" I would like to separate each value and process each line in a loop. Thanks in advance for the help.
×
×
  • Create New...