15,906,335 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by EdithMS (Top 12 by date)
EdithMS
27-Aug-15 15:17pm
View
You are right
Sorry for my question
Thanks again Richard
EdithMS
27-Aug-15 15:11pm
View
Richard
one question, the script works good, copy the file to the directory and then delete the file of the source, now in my log appears all the process with percentage is a very very very long log like this jejeje
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Thu Aug 27 12:28:23 2015
Source : \\diva-disk.mam\youtube_sd\2transcode_tmp\
Dest : \\diva-disk.mam\youtube_sd\2transcode\
Files : TORMENTA_EN_EL_PARAISO-72-200807272963.mp4
Options : /COPY:DAT /MOV /R:1000000 /W:30
------------------------------------------------------------------------------
1 \\diva-disk.mam\youtube_sd\2transcode_tmp\
New File 2.4 g TORMENTA_EN_EL_PARAISO-72-200807272963.mp4
0.0%
0.0%
0.0%
0.1%
0.1%
0.2%
0.2%
0.2%
0.3%
0.3%
0.4%
0.4%
0.4%
0.5%
0.5%
0.6%
0.6%
0.6%
0.7%
0.7%
0.8%
................ continues......
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
99.9%
100%
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 20.461 g 20.461 g 0 0 0 0
Times : 0:05:09 0:05:09 0:00:00 0:00:00
Speed : 71019870 Bytes/sec.
Speed : 4063.789 MegaBytes/min.
Ended : Thu Aug 27 12:37:41 2015
Exist any form for suprime this string go the percentage ??
Thanks again Richard
EdithMS
27-Aug-15 12:21pm
View
Richard !!! thank you so so so so much !!!!!
its working !!!!
EdithMS
26-Aug-15 13:41pm
View
in my app (Rhozet) accept this arguments
A Command Line Notifier can be used to trigger external applications on job start, completion, or error. You can use string replacement tokens in your command line execution.
%jobguid% - Unique GUID for this task
%jobname% - Unique name for this task
%source% - Full source path and name
%destinationname% - Destination path and filename (only valid in completion notifications)
%errormessage% - Error message (only valid in error notifications)
Note: The quotation mark is not part of the token
Examples of a command line text:
c:\myprog.exe %source%
c:\myprog.exe "%destinationname%"
--------------------------------------
when i use a simple batch file with this line: MOVE %1 %2
works very good, move the file go to the source and move the files to the destiny but the log don't show me the path in case of error
move %1 %2 >> D:\test\log_good.txt 2>>D:\test\log_error.txt
ITS WORKS but the log don't show the path
this is my simple script and its works ! but i need see in the logs the source and destination path
for the moment the log_good is: 1 files moved
and the log_errors is:
Hide Copy Code
The system cannot find the file specified.
or
The process cannot access the file because it is being used by another process.
I need know in what path occurs the error but i don't know how set the variable %1 (my source) and %2 (my destination) in my logs
my variables source and destiny its send by my app (Rhozet) its for that im use the parameters %1 for the source and %2 for the destiny
Im try with robocopy because send me the path in the log but don't move the files because the file looks like a folder ..
thanks for your help Richard
EdithMS
26-Aug-15 12:47pm
View
Hello Mika, Richard isn't work :(
the same error with
robocopy %1 %2 %3 /MOV /LOG+:D:\test\mueve.txt
robocopy don't move the file and view all path like a directory
my log error is:
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Wed Aug 26 10:53:05 2015
Source : \\diva-disk.mam\youtube_hd\2transcode_tmp\LA_SOMBRA_DEL_PASADO-118-201505154991_.mp4\
Dest : \\diva-disk.mam\youtube_hd\2transcode\
Files : *.*
Options : *.* /COPY:DAT /MOV /R:1000000 /W:30
------------------------------------------------------------------------------
2015/08/26 10:53:05 ERROR 267 (0x0000010B) Accessing Source Directory \\diva-disk.mam\youtube_hd\2transcode_tmp\LA_SOMBRA_DEL_PASADO-118-201505154991_.mp4\
The directory name is invalid.
EdithMS
25-Aug-15 17:39pm
View
thanks for your help Mika and Richard tomorrow i can do a test using this three parameters
and i say if it worked
EdithMS
25-Aug-15 17:39pm
View
thanks for your help Mika and Richard tomorrow i can do a test using this three parameters
and i say if it worked
EdithMS
25-Aug-15 15:20pm
View
Thanks Mika, i understand
i need move all the files contents in a folder "x" but this folders "x" are random the variable is define for my app (Rhozet) and with move isn't problem
my simple line is : move %1 %2
and works fine but i need get a log with the paths %1 and %2 for know in case the error in what path isn't move the files
in robocopy the log get the path but with my variables %1 %2 see the files like a folder and don't move the files..
maybe i need declare different variable but i do not know how to define in robocopy
EdithMS
25-Aug-15 14:54pm
View
The String
\diva-disk.mam\tvsa_inter\discos-duros_rz\prueba_mueve_tmp\MARIA_LA_DEL_BARRIO-130-201002232705_DV50_3_prueba_mueve.avi
looks like an .avi file, not like a folder.
But
Robocopy see the file. avi like a folder but really the folder in this case is : \diva-disk.mam\tvsa_inter\discos-duros_rz\prueba_mueve_tmp\
ant the file is: MARIA_LA_DEL_BARRIO-130-201002232705_DV50_3_prueba_mueve.avi
and i want move MARIA_LA_DEL_BARRIO-130-201002232705_DV50_3_prueba_mueve.avi
from the source (%1) to the destination folder (%2)
when i use MOVE %1 %2 the files is moved
but when i use Robocopy %1 %2 /MOV don't move the file and send me the log error
2015/08/19 12:40:07 ERROR 267 (0x0000010B) Accessing Source Directory \\diva-disk.mam\tvsa_inter\discos-duros_rz\prueba_mueve_tmp\MARIA_LA_DEL_BARRIO-130-201002232705_DV50_3_prueba_mueve.avi\
The directory name is invalid.
thanks
EdithMS
22-Jul-15 16:43pm
View
Thank you so much Sergey
the PowerShell is my best option
im reading the script now
EdithMS
22-Jul-15 16:43pm
View
is PSTools and the utility is pspasswd.exe its very easy the sentence but maybe i need change a security parameter in the servers
EdithMS
22-Jul-15 16:40pm
View
Hi, my OS is Windows Server 2008 R2
Show More