Jump to content

Shawndt

Active Members
  • Posts

    37
  • Joined

  • Last visited

Shawndt's Achievements

Seeker

Seeker (1/7)

2

Reputation

  1. this is what i used. Filecopy("E:\PROGRAMS\NF Retirement Plans Favorites", "C:\Documents and Settings\turnersh\Favorites\")
  2. I did that as well but it would not copy!
  3. Good Morning, Is there a trick to filecopy? Here is my problem, On my flash drive, I can create directories and use filecopy to transfer any file or folder to those different directories. My problem is when I attempt to copy from my flash drive to the local machine. Filecopy only seems to work on the flash drive. Example Filecopy("\programs\MyFolder\" , C:\Documents and Settings\all users\favorites\") Thanks for in advance
  4. You rock! This worked as well! Thank you!
  5. Thank you this worked perfectly!
  6. Good Morning, I am trying to read the registry. My problem is the keys inside the {} Brackets. Is there a way to automatically read these without coding each and everyone? As each one would be different for every user. I am sure I am not the only one that has had this problem. I am looking for DNS entries for Wireless or Lan setting. The key that I am searching is HKLM\system\currentcontrolset\services\tcpip\parameters\interfaces. I am trying to return the NAMESERVER value. for each of the keys under interfaces. I cannot figure this one out. Please help! Thank you for your kind attention.
  7. I am trying to write a vaildation script by checking directories for install paths. The script is suppose to write to a log file but it is only writing once. So for instance it writes whether IE8 is installed that's it. Even though there are other software installed that it should be seeing and appending to the same log. code #INCLUDE <File.au3> #INCLUDE <Date.au3> $Validation = "\PROGRAMS\VALIDATION\" ;Microsoft Office 2007 Validation If FileExists("C:\Program Files\Microsoft Office\Office12") then _FileCreate($Validation & "\" & @UserName & ".log") FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Microsoft Office 2007 Installed") Else FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Microsoft Office 2007 Failed") EndIf ;Afaria Validation If FileExists("C:\Program Files\AClient") then _FileCreate($Validation & "\" & @UserName & ".log") FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Afaria 6.5 Installed") Else FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Afaria 6.5 failed") EndIf ;Siebel 7.8 If FileExists("C:\Program Files\Siebel7.8") then _FileCreate($Validation & "\" & @UserName & ".log") FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Siebel 7.8 Installed") Else FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Siebel 7.8 failed") Endif ;Imagine and Workflow 2.0 install If FileExists("C:\Program Files\NRS") then _FileCreate($Validation & "\" & @UserName & ".log") FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "IMG and Workflow Installed") Else FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "IMG and Workflow failed") Endif ;Symantec Vontu DLP Endpoint If FileExists("C:\Program Files\Symantec\Endpoint Agent") then _FileCreate($Validation & "\" & @UserName & ".log") FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Vontu DLP ENDPOINT Installed") Else FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "Vontu DLP ENDPOINT Installed failed") Endif If FileExists(@UserProfileDir & "\Favorites\NF Retirement Plans Favorites") then _FileCreate($Validation & "\" & @UserName & ".log") FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "NRS IE Favs Installed") Else FileWriteLine($Validation & "\" & @UserName & ".log", _Now()) FileWriteLine($Validation & "\" & @UserName & ".log", "NRS IE Favs Failed") EndIf code
  8. Is this possible? If FileExists("C:\Documents and Settings\" & @UserName & "\Favorites\NF Retirement Plans Favorites\. I am trying to get the location path of the user that is login. I think my syntax is a little off.
  9. Thank you so much for your kind attention! I really appreciate your help!
  10. I've checked that already, nothing there that can help.
  11. Good Morning, I am looking for the proper syntax to create a file with the user's id as the name of the file. So for instance, smiths.log or .txt. Also I need to write to the same file. This is what I have below. Thank you for your kind attention. CODE _FileCreate($Validation & "\ & @UserName.log") FileWriteline($Validation & "\Validation.log", @UserName) FileWriteLine($Validation & "\Validation.log", _Now()) FileWriteLine($Validation & "\Validation.log", @CRLF) CODE.
  12. Danny, thanks so much for your help. Got another question. I am checking to see if a fileexist which is simply but i cannot find the Syntax to Check for Directory?
  13. it bombs
  14. The include file, does it have to be on the machine or when you create the .exe file?
×
×
  • Create New...