| | |
How to sent file ?!
Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2008
Posts: 8
Reputation:
Solved Threads: 0
Hello !!!
My directory D:\conv\ESSD\YJCIS\YJCIS14183\bbb.doc
I must send to X:\sgml_db\ESSD\YJCIS\YJCIS14183\
directory and rename bbb.doc to MMC1.doc.
If X:\sgml_db\...\....\YJCIS14183\ don't exist, i must create it.
"X:\sgml_db\" constant directory.
My script must choose path itself !
What I must add to this script !!!
My directory D:\conv\ESSD\YJCIS\YJCIS14183\bbb.doc
I must send to X:\sgml_db\ESSD\YJCIS\YJCIS14183\
directory and rename bbb.doc to MMC1.doc.
If X:\sgml_db\...\....\YJCIS14183\ don't exist, i must create it.
"X:\sgml_db\" constant directory.
My script must choose path itself !
What I must add to this script !!!
perl Syntax (Toggle Plain Text)
use strict; use warnings; use File::Copy; use File::Path; my $sDest = 'X:/whatever'; mkpath $sDest; copy('D:/whatever/bbb.doc', qq{$sDest/MMC1.doc});
Last edited by Narue; Sep 4th, 2008 at 9:32 am. Reason: added code tags
![]() |
Similar Threads
- connect to text file database (Visual Basic 4 / 5 / 6)
- Importing SQL Script File - Urgent !! (Database Design)
- Syntax for deleting specified file ( in C++) (C++)
- enabling file sharing (Windows NT / 2000 / XP)
- data file help (C)
- 81TB File Server (Networking Hardware Configuration)
Other Threads in the Perl Forum
- Previous Thread: PERL column operations and deleting
- Next Thread: MySQL query error
| Thread Tools | Search this Thread |





