Hi,
I'm trying to copy one file from folder1 to the same file to folder2.
I'm using
/copy -o folder1/file.name folder2/file.name
But I can't copy it, I only got:
* /copy: unable to open file 'C:\mirc\folder2\file.name'
But when I use
/copy -o folder1/file.name file.name
it copy file to C:\mirc\
Is this a bug or what. If so, please move to Bug section.
Regards
This is not a bug, but the method that mIRC uses for determining the drive and path where files are to be stored.
Unless you specify a drive letter and the full path, mIRC uses the installation drive and directory as the main references.
In this case, C:\mirc
If you do specify the drive letter and full path, and it (or the filename) has spaces in it (eg: My Documents), then you have to enclose the entire thing (drive:\path\file name.ext) in quotation marks.
But path is correct. There is folder folder2 in mirc folder which is in C:\
So this is ok C:\mirc\folder2
As long as the path is valid, that should work (with or without providing the drive letter). /copy will not create a folder that does not exist. Also, if you're using spaces at all in the path or filename, you'll run into problems unless you put quotes around each path/filename.
Although you should be able to use / in the path, with Windows, it really should be \. / is used in *nix environments for paths, but Windows uses \ except in regard to network paths. Although mIRC should work fine with /, you might want to try with \ and see what happens.
One other possibility for the error is that the file is locked for some reason. It may be set to read only or you may not have permissions to modify/delete the file. It may also be "in-use" such that it cannot be modified.
It's same with \
File was loaded in mIRC and I've unloaded it to check then, but it's same.
Any clues?
Can you write correct format of command?
File 1: C:\mirc\folder1\script.mrc should be copied to:
File 2: C:\mirc\folder2\script.mrc
mirc.exe: C:\mirc
mirc.ini: C:\mirc