# steal-file command

The steal-file BASIC program is the
only valid way to move a file from another account into the current
account.

This physically moves a file to the current master dictionary
from another master dictionary. steal-file prompts
for the account name and requires sys2 privileges. It also requires
that the user invoking steal-file is not protected
against updating the file at any level, master dictionary, file level
dictionary, or data file level.

After *stealing* a file,
the former owner has no reference to it, not even visitation rights.
He or she can get visitation rights by building a Q-pointer to where
the file moved, or by referencing the path name.

## Syntax

```
steal-file file.reference
from account: account.name
```

## Example(s)

```
steal-file goods
from account: victims
```

## See also

- [copy command](https://d3codex.com/tcl/copy-command/)
- [File control block](https://d3codex.com/definitions/file-control-block/)
- [move-file command](https://d3codex.com/tcl/move-file-command/)
- [rename command](https://d3codex.com/tcl/rename-command/)
- [rename-file command](https://d3codex.com/tcl/rename-file-command/)

---
Source: https://d3codex.com/tcl/steal-file-command/ - part of the D3Codex reference.
