UiPath | Get Newest File from Directory using LINQ query | Get Last Modified File from Folder

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 26

  • @fwziayasser4510
    @fwziayasser4510 2 ปีที่แล้ว +1

    The greatest 🔥

  • @LuisFernando-ux1ys
    @LuisFernando-ux1ys 2 ปีที่แล้ว +1

    GREAT VIDEO

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      Thanks Luis, happy to hear that :-)

  • @janipasha1862
    @janipasha1862 2 ปีที่แล้ว +1

    Nice video. Thank you.

  • @rikkyjoshy
    @rikkyjoshy 2 ปีที่แล้ว +1

    nice

  • @LetsGetItDoneWithAnupriti
    @LetsGetItDoneWithAnupriti 2 ปีที่แล้ว +1

    Hi. I want to get all filenames from a folder using linq. I'm getting error while doing the same

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      Can you please let me know, which query did you use?
      And please also the folder name.
      So I can help you better!

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      But normally if the foldername is ok and there are files with this folder, you should get the files.
      please give me also more details about the exception which you got

  • @yashobantadash6670
    @yashobantadash6670 10 หลายเดือนก่อน

    awesome video bro! justa a doubt. If we already have defined variable as fileinfo when using assign activity, why are we using cst(of fileinfo) in value section then?

  • @shiva11112
    @shiva11112 2 ปีที่แล้ว +1

    Hi, Please show in method syntax also so that it helps in writing queries in easier manner

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      Sure Shiva. In the new videos about LINQ I am using Method syntax also!
      But for the current video if you want to know how is a specific query will be written in method syntax, please let me know and I will write it for you here in the comments!

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      Hi Shiva,
      Here is the same query in method syntax:
      New DirectoryInfo("C:\Temp").GetFiles("*.*").OrderByDescending(Function(x) x.LastWriteTime).ElementAt(0)

  • @krupapulijala8206
    @krupapulijala8206 2 ปีที่แล้ว +1

    How to get a multiple last modified files

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      Hi Krupa,
      It depends how many files you want to get. For that you can use Take operator instead of ElementAt(0).
      For example this query:
      (
      From x In New DirectoryInfo("C:\Temp").GetFiles("*.*").Cast(Of FileInfo)
      Order By x.LastWriteTime Descending
      Select x
      ).Take(3).ToArray
      This query returns the newest 3 files. Here you have to use a variable of type (Array of FileInfo: FileInfo[]) to store the output.
      So you can use Take, Skip, TakeWhile, SkipWhile to get the files you need. It depends on your need.
      To learn more about these operators you can also check the videos on my channel about each one.
      If you still have questions, please don't hesitate to write us back 🙂

  • @Suraj_Khote
    @Suraj_Khote 2 ปีที่แล้ว +1

    Hi I have seen the videos at other channels , they write LINQ in single strait line but I found your 6 step writing is quite more easy to understand. can you make a video where you can show how to convert strait line query in your format and yours in strait line.

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว +1

      Sure Suraj. It's already on my ToDo list 😉

    • @Suraj_Khote
      @Suraj_Khote 2 ปีที่แล้ว +1

      @@ActAutomate wow thats amazing .we are waiting...👍

  • @suraj_singh321
    @suraj_singh321 2 ปีที่แล้ว +1

    Hi Uipath Mahmoud Uipath RPA make a video on Macro Tutorial Excel in UI Path
    How to pass variable to macro and many more

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      Hi Suraj,
      what do you want to learn exactly?
      Only executing Macro with some input parameters or do you need something more?
      Please let me know everything you need and we will create the video asap!

    • @suraj_singh321
      @suraj_singh321 2 ปีที่แล้ว +1

      @@ActAutomate more sir Full Tutorial In macro Excel using uipath

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      @@suraj_singh321 Ok we will do it. In 2 weeks you can watch the video about Macros in UiPath!
      If you still have any specific points about this topic, please don't hesitate to write us!☺

    • @suraj_singh321
      @suraj_singh321 2 ปีที่แล้ว +1

      @@ActAutomate yes sir for sure Thank you 🔥

    • @ActAutomate
      @ActAutomate  2 ปีที่แล้ว

      @@suraj_singh321 You're welcome 🔥