03-16-2006 04:05 PM
03-16-2006 04:53 PM
03-17-2006 08:36 AM
I just tried these path in the Run Object:
"cmd /c move /y c:\data\servos\uxlx\2006\mar\17\shift2\*.* G:\Data\Servos\UxLx\2006\Mar\17\Shift2"
According to your recomendation, this statement should work.
It does not accept to modify the statement to:
""cmd /c move /y c:\data\servos\uxlx\2006\mar\17\shift2\*.*"" ""G:\Data\Servos\UxLx\2006\Mar\17\Shift2""
or to:
"cmd /c move /y c:\data\servos\uxlx\2006\mar\17\shift2\*.*" "G:\Data\Servos\UxLx\2006\Mar\17\Shift2"
Notes:
1.- G:\ is a network drive. In order to double check that this computer account has the permissions to create a file there, I created the file from this computer in the G:\ network drive. It works Okay.
2.- When the pushbutton that triggers the run object is pressed (with the very first statement above), a very quick black screen appears and disappears (I assume this is the Dos screen), and there is not alarms. No file is moved or copied out.
3.- I made sure that the folder I want to copy or to move is no been fed with new data. The Spreadsheet object was directed to save its data to a new location. This releases the folder created before.
4.- Rater than to move, I would prefer to copy the file in C:\ to the network drive.
What else we can try?
03-17-2006 09:44 AM
As I had mentioned earlier, you want to embed the two paths in two quotation marks. This should work:
"cmd /c move /y ""c:\data\servos\uxlx\2006\mar\17\shift2\*.*"" ""G:\Data\Servos\UxLx\2006\Mar\17\Shift2"""
Let us know how it goes.
-Khalid
03-17-2006 10:06 AM
03-17-2006 10:26 AM
I mapped a network folder as G: drive, created all the folders you have, exactly as they are on both my C: drive and the G: drive. And, please believe me, the above command moves the files just fine! I am attaching my LKS file. Can you try with this?
If that still doesn't work, can you try the following from a DOS command prompt:
move /y c:\data\servos\uxlx\2006\mar\17\shift2\*.* G:\Data\Servos\UxLx\2006\Mar\17\Shift2
Note: there are no quotation marks in the above statement. If even this doesn't work, then let us know the error DOS returns.
Thanks,
-Khalid
03-17-2006 11:05 AM
Try this modified example attached, and copy any csv file you have to: C:\Data\Servos\UxLx\2006\Mar\17\Shift2. CSV files are not allowed to be attached. Now the run object is set to move from C to another place of the same C. Your example DIDN'T WORK, so I changed the computer and played with your example (with Lookout 6.0.2). I had no results yet.
Thanks for your efforts.
03-17-2006 11:11 AM
Still works for me!
I guess the only we to find out the problem is to try the command from the DOS prompt.
Regards,
-Khalid
03-17-2006 03:22 PM
Hello again.
What I just discovered playing with DOS commands (in windows XP SP2 computers), is that either COPY or MOVE commands don't create destination subdirectories. In other words, in order to have a successful copy or move execution, the destination subdirectory tree must exist first. I have then to play a little bit with the command "MD" through the run object in lookout BEFORE to execute a copy.
Did your computer create the whole destination subdirectory tree when the move command was executed?
Anything else I should know about all this?
03-17-2006 03:29 PM