Terminal: Path to Network Drive in Applescript

I am attempting duplicate a documents approximately a network drive in AppleScript.

Generally I would certainly do.

do script "mv ~/Desktop/file.txt ~/Folder/file.txt"

What is the proper course to a network drive? I generally get in touch with finder by doing:

tell application "Finder"
    open location "smb://user:[email protected]/MyShare"
end tell

How do I do:

do script "mv ~/Desktop/file.txt smb://user:[email protected]/MyShare/Folder/file.txt"
3
2022-06-07 14:39:50
Source Share
Answers: 2

The proper syntax would certainly be smb://[<user>@]<workgroup>[:<port>][/]

To address your 2nd inquiry:

do shell script "mv ~/Desktop/file.txt smb://user:[email protected]/MyShare/Folder/file.txt"
2
2022-06-07 15:09:51
Source

The command

do shell script "mv ~/Desktop/file.txt smb://user:[email protected]/MyShare/Folder/file.txt"

return 'No such documents or directory site' Finder places network drives under the/ Volumes/

do shell script "mv ~/Desktop/file.txt /Volumes/netDrive/MyShare/Folder/file.txt"
0
2022-06-07 14:51:45
Source