Shadowspawn
A Windows utility that mounts a shadow copy of the disk at a drive letter and then spawns an arbitrary command.
Install / Use
/learn @candera/ShadowspawnREADME
Status
NO LONGER SUPPORTED. It might still work - I don't know. I don't run Windows any more. Sorry! I supported it for years but hopefully there's a fork somewhere out there. If you make one and maintain it I will be happy to post a link here.
What Is ShadowSpawn?
ShadowSpawn is a tool for working with shadow copies. Shadow copies are read-only snapshots of your disk. Working with shadow copies instead of the actual files allows you to do things like work with in-use (locked) files.
ShadowSpawn works by making a shadow copy of your disk, making it available at a drive letter, then launching (spawning) another program that you specify.
Probably the most common way to use ShadowSpawn is to use Robocopy make a copy of files that are currently in use.
Installing ShadowSpawn
Most users can simply unzip the appropriate zip file from the download page. ShadowSpawn.exe can then just be run - there is no installer. However, ShadowSpawn uses the Visual C++ runtime, which may not be present on some machines. If ShadowSpawn does not work for you, run the vcredist executable available from the same download page.
Running ShadowSpawn
ShadowSpawn is a command-line tool: there is no GUI.
ShadowSpawn take three arguments:
- The directory that contains the files you want to snapshot.
- An available drive letter where the snapshot will become visible.
- A command to run.
Let's say that you wanted to use robocopy to copy files from the
C:\foo directory to the C:\bar directory. You could do that with
the following command:
shadowspawn C:\foo Q: robocopy Q:\ C:\bar /s
That would cause shadowspawn to
- Make a shadow copy of the C: drive.
- Mount the shadowed version of the C:\foo directory at Q:.
- Launch
robocopy Q:\ C:\bar /s - Wait for Robocopy to finish.
- Clean up the shadow copy and remove it from Q:
You can use any drive letter you want (it doesn't have to be Q:),
but it does have to be a drive letter that's not currently being used
for anything else.
You can run any command you want. So if you just wanted to use notepad
to look at a shadow copy of C:\foo\blah.txt, you'd run
shadowspawn C:\foo Q: notepad Q:\blah.txt
Just remember that shadowspawn will remove the Q: drive as soon as the command you specify exits.
Relationship to HoboCopy
ShadowSpawn is derived from the same source code as HoboCopy and is intended to replace it. The evolution was driven by the fact that although the shadow copy part of HoboCopy works well enough, the copying part was nowhere near as robust as tools like RoboCopy. By providing a tool that just takes care of the shadow copy, ShadowSpawn allows users to work with locked and in-use files using any other tool, not just the limited copy features provided by HoboCopy.
Status
ShadowSpawn is currently at version 0.1.0, which is meant to indicate that it is an initial version. While it largely consists of fairly mature code taken from HoboCopy, there are bound to be a few issues as early adopters identify opportunities for improvement.
Reporting Bugs and Requesting Features
Please report bugs and request features using either the project issue tracking system or the project mailing list at shadowspawn-tool@googlegroups.com (website).
