SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: copy_file()

  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    copy_file()

    User =?iso-8859-1?q?Shashidhar=20Prabhu?= (prabhushashidhar@yahoo.co.in.nospam) posted:

    I am trying to copy a file using copy_file() function
    from CSO library. But it is not working for me.
    I used,
    copy_file("E:\\folder1\\file1","E:\\folder2\\",0);
    but in vain.
    I can accomplish the same task using DOS command.
    dos_system("copy E:\\folder1\\file1 E:\\folder2\\")
    works fine.
    Can somebody tell me why is it not working in the
    first case?

    Thanks,
    Shashi

    __________________________________________________ ______________________
    Looking for a job? Visit Yahoo! India Careers
    Visit http://in.careers.yahoo.com


  2. #2
    Senior Member
    Join Date
    Jul 2001
    Posts
    216
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: copy_file()

    User misha (mm_ke@yahoo.com.nospam) posted:


    Have you tried including the filename in the destination:
    copy_file("E:\\folder1\\file1","E:\\folder2\\file1 ",0);

    ----- Original Message -----
    From: "Shashidhar Prabhu" <prabhushashidhar@yahoo.co.in>
    To: <winrunner@yahoogroups.com>
    Sent: Saturday, February 09, 2002 3:08 PM
    Subject: [winrunner] copy_file()


    I am trying to copy a file using copy_file() function
    from CSO library. But it is not working for me.
    I used,
    copy_file("E:\\folder1\\file1","E:\\folder2\\",0);
    but in vain.
    I can accomplish the same task using DOS command.
    dos_system("copy E:\\folder1\\file1 E:\\folder2\\")
    works fine.
    Can somebody tell me why is it not working in the
    first case?

    Thanks,
    Shashi

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:08 PM.

Copyright BetaSoft Inc.