mike.h on Fri, 21 Jun 2002 12:43:24 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] OT - Perl Question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 21 June 2002 12:22 pm, you wrote:
> On Fri, Jun 21, 2002 at 09:42:55AM -0600, W. Chris Shank wrote:
> > I am trying to call the following windows system command (copy)
> >
> > sub backup {
> > 	@args = ("copy", $_[0], $_[1]);
> > 	system(@args) == 0
> >      		or die "backup system @args failed: $?";
> > }
<snip>

Try double quotes around paths with spaces or use the "DOS" (short) name"
eg:
copy "\path with spaces\file 1 w spaces.ext" "\path with spaces\file 2.ext"
or use the "short" name
eg:
 copy \pathwi~1\file1w~1 \pathwi~1\pathwi~1

NOTE: your short names may vary!

- -mike

mike.h@acm.org
mike.h@stemik.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9E1yGiHSfwGRxUJQRAtsfAKCdSnRvbBQNFIL4HyTLsAlAjz2xcACeKwk/
eKtZXly1u2w+GKg8qklxzK8=
=8vCU
-----END PGP SIGNATURE-----

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug