Hello, Thanks for all your inputs now below you mentioned
copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file)) sorry for my ignorance but what is qq???? also if I want to be smart and copy it to the c: drive of some user - assuming I am running the script from a Domain Admin login eg. \\machine1\c$\file then the dollar sign won't work as expected right - given my limited understanding will a \$ work then!!! Regards --- Dan Muey <[EMAIL PROTECTED]> wrote: > > --- Dan Muey <[EMAIL PROTECTED]> wrote: > > > > Try: > > > > > > > > use strict; > > > > use warnings; > > > > ... > > > > my $returnValue = > > > > > > > > > "copy("\\\\machine1\\share\\file1","\\\\machine2\\share\\file2"); > > > ^ I think that quote will cause problems. > > > > > > Have you tried single quotes also? That way you > don't > > have to worry > > > about properly escaping the \. > > > > > > > copy('\\machine1\share\file1','\\machine2\share\file2') > > > or die "Copy > > > failed $!"; > > > > > > Just a thought > > > > That won't work if the write decides that "file1" > should be a > > variable instead. Just a thought :-/ > > Ok, in the example file1 wasn't a variable but if > you dod want to do > \\machine1\share\$file > > > copy(qq(\\machine1\share\$file),qq(\\mahine2\share\$file)) > or ... > > Would that cover all the bases? > > DMuey > > > > > > > > > Dmuey > > > > > > > -JW > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site > design > > software http://sitebuilder.yahoo.com > > > > -- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]