PDA

View Full Version : File_Copy and """



Michael Clease
17-06-2010, 15:57
I have been chasing my tail trying to figure why I was getting an Error 75 until I passed a string without quotes

Before:

File_Copy( CHR$(34)+myPath+Filename+CHR$(34),CHR$(34)+NewPath+Filename+CHR$(34) )

After

File_Copy( myPath+Filename, NewPath+Filename )

I was calling a shell command before doing the file_copy and the filename required quotes so I didnt think I was doing anything wrong :violent:

Not really a bug but more a heads up.

Regards

Mike

ErosOlmi
17-06-2010, 17:36
I'm sorry but I do not what to do to avoid such problems.

Shelling is passing a string to another process so in some cases it is necessary to quote command and/or parameters
File_Copy is a direct command so if you pass a quote in the file name it will be interpreted as part of the name.

Michael Clease
17-06-2010, 17:45
I dont think you need to do anything just information incase anyone else has the same problem.

thanks