Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sugram

    Script to copy new Files and create Folder

    Hello I would like if there is a new file in a directory or subdirectory that File copied and the folders are created at the destination if they do not exist. My actual Code is: $Quellverzeichnis = "\\Server1\xxx\yyy\zzz" $Zielverzeichnis = "\\Server2\aaa\bbb\ccc" $FileSystemWatcher =...
  2. sugram

    how start a second shell script

    Hello I have a php script that is executed a shell Script after a click. That works fine. is it possible that another shell script is executed after a waiting period? <?php if ($_GET['run']) { $script = "sudo /home/pi/midori-restart.sh"; $run=`$script`; } ?> <style...
  3. sugram

    Copmare Console Output send to an Email?!

    I don't get it sorted yet, at least not as I would like. Currently I have the problem that I only get one change displayed. Only from one PC and not from all of them as before.
  4. sugram

    Copmare Console Output send to an Email?!

    Many Thanks. I now have to find the correct "format" to replace so that I can get the output I want. Is still a bit difficult for me at the moment ;-)
  5. sugram

    Copmare Console Output send to an Email?!

    Hello Many Thanks Ok, but i don't know how can i change the Clipboard information. I have to find out more about that first. i have this $Ausgabe = Get-Clipboard $Ausgabe = $Ausgabe -replace "; SideIndicator==>} @{Name=", "ZZ" tried, but unfortunately without success. The "ZZ" was an...
  6. sugram

    Copmare Console Output send to an Email?!

    Hello i would like to design the output like this Die Datei \\PC2\Share\123\xyz Lx_St1.1_EVGV1_Defekte_Deckel_hinten.pvx; LastWriteTime=03/09/2021 08:22:06; Lx_St1.1_EVGV1_Defekte_Deckel_hinten.pvx; LastWriteTime=03/09/1900 00:00:01 \\PC3\Share\123\xyz...
  7. sugram

    Copmare Console Output send to an Email?!

    Good Idea I just don't know in which line or where I would have to insert the ('r'n.) My attempts so far have all failed.
  8. sugram

    Copmare Console Output send to an Email?!

    @Rick998 Many Thanks!! Yes it helps. Only the output in the email text is not optimal. $ref_dir = '\\PC1\Share\123\xyz' $filefilter = '*.pvx' $shares = "\\PC2\Share\123\xyz","\\PC3\Share\123\xyz","\\PC4\Share\123\xyz" $ref = ls "$ref_dir\*" -File -Filter $filefilter -exclude...
  9. sugram

    Copmare Console Output send to an Email?!

    Hello I have this powershell that checked the directories for me. Everything works fine. Of course I get 3 emails through the forech. My question: is it possible to only receive one email with the content of the console? Or an email with an overview of which files are different on the...
  10. sugram

    check multiple files (Moved the Post from VBScriptto here)

    [thumbsup2] Many thanks. In the first test, I had the problem that it started a powershell process for me in a continuous loop, so I had to reboot the PC :-)
  11. sugram

    check multiple files (Moved the Post from VBScriptto here)

    I have one more question. I have read here that the paths could also be read from a file https://stackoverflow.com/questions/53397783/file-watcher-using-windows-powershell-to-monitor-multiple-paths $paths = Get-Content "D:\abc\Folder_monitored_paths.txt"; foreach ($path in $paths) is it...
  12. sugram

    check multiple files (Moved the Post from VBScriptto here)

    Hello I ask my question in the Forum and i get an answer. With this script i get the Filename Write-Warning 'Change detected:' $ChangeInformation | Out-String | Write-Host -ForegroundColor DarkYellow # send email Send-MailMessage –To "Email@domain.com" ` –Subject...
  13. sugram

    check multiple files (Moved the Post from VBScriptto here)

    hi again :-) I am currently failing to get the file name in my email notification just like in your script. I hope you can help me :-) Many Thanks
  14. sugram

    check multiple files (Moved the Post from VBScriptto here)

    Good Morning. I noticed a new "error" with the Script yesterday. I copy the Test.cfg File in a different folder, change the file and copy back to the watched folder. So i get 3 Messages?!?! I found a better solution for me. (Here the URL...
  15. sugram

    check multiple files (Moved the Post from VBScriptto here)

    you wrote that you changed it with the notepad, I tried it with this one and it works. Normally I always use notepadd ++ here Many thanks for the Code! I will test it.
  16. sugram

    check multiple files (Moved the Post from VBScriptto here)

    Ok, i have only changed the Part of Email in the script for testing. So i get only a picture and no emails ;-) # define actions after an event is detected $writeaction = { $path = $Event.SourceEventArgs.FullPath $changeType = $Event.SourceEventArgs.ChangeType $logline = "$(Get-Date)...
  17. sugram

    check multiple files (Moved the Post from VBScriptto here)

    Hi mikrom, Many thanks for your help! i don't know what do my PC. The results you can see here.
  18. sugram

    check multiple files (Moved the Post from VBScriptto here)

    Hi Mikrom i think my Computer hates me. I reboot my pc and open one Powershell window, and run the script. And i get 2 messages :(
  19. sugram

    check multiple files (Moved the Post from VBScriptto here)

    hi mikrom, ok, in the Powershell console i get no error message ;-) But i get always 2 Messages when i change one file. (i open it, change something and save the file)
  20. sugram

    check multiple files (Moved the Post from VBScriptto here)

    @mikrom Many Thanks!! I test it in the Powershell ISE Console, but i get a error Message: Start monitoring files: c:\tmp\*.cfg (press Ctrl-C to stop) Ausnahme beim Festlegen von "TreatControlCAsInput": "Das Handle ist ungültig. " In Zeile:42 Zeichen:1 + [console]::TreatControlCAsInput =...

Part and Inventory Search

Back
Top