Previous in Forum: NXT or NXC   Next in Forum: Copy Multiple Sheets and Rename at One Time
Close
Close
Close
3 comments
Rate Comments: Nested
Anonymous Poster

Copying Files In Wise Script Packaging Editor?

06/02/2010 1:22 AM

I am not able to copy the files from one folder to another. The script I wrote is this:

I want to copy the .doc file; this is the actual doc file location D:\Umesh\Feature\AboutSampleInstall.doc


I should see the doc file path after copying D:\GMS\SampleInstall\AboutSampleInstall.doc

Please can you give me the script for this...

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Oct 2006
Location: New Jersey U.S.A.
Posts: 1114
Good Answers: 38
#1

Re: How to copy file from one folder to another in wise script packaging editor?

06/02/2010 6:29 AM

Make sure the target for the file location is correct and actually exists or it won't know where to go. Plus you may not have administrative rights to the file to copy it or maybe the file location your writing to is write protected.

__________________
The last fight was my fault. My wife asked "What's on the TV?" I said "Dust!"
Reply
Anonymous Poster
#2

Re: Copying Files In Wise Script Packaging Editor?

06/02/2010 11:51 PM

Hi Charsley

I have administrative rights to my computer.

But still cant able to copy the file. the script i written like this:

Set Varibale F1 to D:\GMS\SampleInstall\AboutSampleInstall.doc

Copy local file from %F1%\D:\Umesh\Feature\*.doc to %F1%\D:\GMS\SampleInstall\AboutSampleInstall.doc

Please correct me if i am wrong

Regards

Umesh

Reply
Guru

Join Date: Feb 2009
Location: Houston, USA
Posts: 946
Good Answers: 244
#3
In reply to #2

Re: Copying Files In Wise Script Packaging Editor?

06/22/2010 6:13 PM

I think you are talking about DOS script. Try this.

Create a text file and name it (say copyFile.bat) and write the following command in the file:

Set Source= D:\Umesh\Feature

Set Dest= D:\GMS

Copy %Source%\AboutSampleInstall.doc %Dest%

Save the file some where and execute it (double click).

- MS

__________________
"All my technical advices in this forum must be consulted with and approved by a local registered professional engineer before implementation" - Mohammed Samad (Linkedin Profile: http://www.linkedin.com/in/msamad)
Reply
Reply to Forum Thread 3 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); charsley99 (1); msamad (1)

Previous in Forum: NXT or NXC   Next in Forum: Copy Multiple Sheets and Rename at One Time

Advertisement