Jump to content

Recommended Posts

Posted (edited)

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
Posted

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().

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...