Jump to content
Sign in to follow this  
kjcdude

FileMove Error

Recommended Posts

kjcdude

I was testing a filemove script on real files, and accidently moved files into a file folder type thing.

Here's the screwed up script. As you can see at the end of the destination directory i forgot to add a trailing backslash which in turn copied the files to a directory, but into a single file.

Ex: the final directory is \\nas01\Volume_1\Replays\Starcraft\10 which is actually a file

FileMove("C:\Program Files\Starcraft\maps\replays\*.*", "\\nas01\Volume_1\Replays\Starcraft\" & $compnum, 9)

Does anyone know how to read the files that are put into the files?

Edited by kjcdude

Share this post


Link to post
Share on other sites
Andreik

I was testing a filemove script on real files, and accidently moved files into a file folder type thing.

Here's the screwed up script. As you can see at the end of the destination directory i forgot to add a trailing backslash which in turn copied the files to a directory, but into a single file.

Ex: the final directory is \\nas01\Volume_1\Replays\Starcraft\10 which is actually a file

FileMove("C:\Program Files\Starcraft\maps\replays\*.*", "\\nas01\Volume_1\Replays\Starcraft\" & $compnum, 9)

Does anyone know how to read the files that are put into the files?

You can use DirMove().


When the words fail... music speaks

Share this post


Link to post
Share on other sites
kjcdude

You can use DirMove().

I needed to create the new dir at the location of where the files are to be moved to.

It works like it needs to now, i'm still at a loss as to how to recover the two folder files that i created.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.