Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Shivakumar03
New Member

Can Power Query copy and move files from one directory to another directory?

Would like to know if Power Query can copy files from one directory to another.

Ex: 

I have a file called abc.xlsx in 'C:\Users\Folder1\abc.xlsx' directory.

And i want to copy that file in another directory 'C:\Users\Folder2\'

 

So, after copying, that file is now in both directories.

C:\Users\Folder1\abc.xlsx

C:\Users\Folder2\abc.xlsx

 

Does Power Query have this facility to do this?

 

2 ACCEPTED SOLUTIONS
freginier
Solution Specialist
Solution Specialist

You can't directly from power query.

You need to use power automate or python linked to power query / power bi 

 

______________________________________________________

If you found this post helpful, please give Kudos C

View solution in original post

mussaenda
Super User
Super User

Hi @Shivakumar03 ,

 

Basically, power query is used to transform and load data.

It reads the files you connected.

 

For your desired function, better to use the power automate.

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Hi @Shivakumar03 ,

 

Basically, power query is used to transform and load data.

It reads the files you connected.

 

For your desired function, better to use the power automate.

freginier
Solution Specialist
Solution Specialist

You can't directly from power query.

You need to use power automate or python linked to power query / power bi 

 

______________________________________________________

If you found this post helpful, please give Kudos C

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors