Jump to content

FileMove Error


Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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