mIRC Home    About    Download    Register    News    Help

Print Thread
#228373 20/12/10 12:33 PM
D
DeSync
DeSync
D
Hi,

I'm trying to copy one file from folder1 to the same file to folder2.

I'm using
Code:
/copy -o folder1/file.name folder2/file.name


But I can't copy it, I only got:

Code:
* /copy: unable to open file 'C:\mirc\folder2\file.name'


But when I use

Code:
/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

Last edited by DeSync; 20/12/10 12:33 PM.
#228378 20/12/10 04:59 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
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.

RusselB #228380 20/12/10 05:07 PM
D
DeSync
DeSync
D
But path is correct. There is folder folder2 in mirc folder which is in C:\

So this is ok C:\mirc\folder2

#228383 20/12/10 07:31 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.

Riamus2 #228387 20/12/10 08:23 PM
D
DeSync
DeSync
D
It's same with \

File was loaded in mIRC and I've unloaded it to check then, but it's same.

#228453 23/12/10 11:56 AM
D
DeSync
DeSync
D
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

Last edited by DeSync; 23/12/10 12:18 PM.

Link Copied to Clipboard