Weird: Copy-ADTFile can't find the source file?

One of our apps is a simple, single exe that I am planning on copying to C:\Program Files but Copy-ADTFile can’t “find” it?

The file is definitely there:

But when I do a Copy-ADTFile:

It errors out saying it can’t find the file:

I don’t understand why it’s looking under my home folder C:\Users\xxx. I tried using the $adtSession.DirFiles but it simply just looks at C:\Users\xxx$adtSession.DirFiles which is also incorrect.

Anyone encountered this before?

Maybe use this:

Copy-ADTFile -Path "$($adtsession.dirfiles)\Godot_v4.4.1-stable_win64.exe" -Destination <Your destination folder>

If you do that make sure to use double quotes instead of single (single quotes in powershell are a literal string).

I swear I did that yesterday but it didn’t work. Tried again today and it does …

Oh well, thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.