My Button:
Code: Select all
/auto_close /balloon=FALSE /estimate /cmd=force_copy /srcfile=%L /to="%T"
GetFullPathName2(The filename, directory name, or volume label syntax is incorrect.123) : f:\G geri koy\PC Games\Defian ??\
Moderators: white, Hacker, petermad, Stefan2
Code: Select all
/auto_close /balloon=FALSE /estimate /cmd=force_copy /srcfile=%L /to="%T"
GetFullPathName2(The filename, directory name, or volume label syntax is incorrect.123) : f:\G geri koy\PC Games\Defian ??\
Really?Fast Copy supports unicode names the problem is related to TC command.
Regardshttp://www.questiondriven.com/2014/04/03/fastcopy-command-line-examples/ wrote:/srcfile=”files.txt” … Specify source files by textfile. User is able to describe 1 filename per line. (Attention: If a lot of files are specified, it will take many times to display/refresh Source combobox.)
/srcfile_w=”files.txt” … same as “/srcfile=”, except describing by UNICODE.
Not %LW but %WLdrbeat wrote:I tried this "/srcfile_w=%LW" and I get "c:\Defian От" but before c:\ there's a square. Any solution for this?
"doesn't work" means what exactly?drbeat wrote:%WL doesn't work too.
Code: Select all
# TC Button
# Command: powershell -noexit -File "X:\temp\PS\RemoveBOM from TCs temp file\RemoveBOM.ps1"
# Parameter: "%WL" "%T"
$TCsTempFile = $Args[0]
$TCsTarget = $Args[1]
# & "notepad2.exe" $TCsTempFile
$NewTempFile = $env:temp + "\tctempfile.txt"
# //Read and write TCs temp file, but change endcoding:
# Out-File 'Encoding' :"unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem"
Get-Content $TCsTempFile | Out-File -encoding UTF8 $NewTempFile
# & "notepad2.exe" $NewTempFile
# //Call here your command, now with list of files w/o BOM:
$Exe = "xxx.exe"
&$exe "/auto_close /balloon=FALSE /estimate /cmd=force_copy /srcfile_w=$NewTempFile /to=$TCsTarget"
# For the right quoting see > http://edgylogic.com/blog/powershell-and-external-commands-done-right/
# ...how do I send parameters that contain spaces? Normally we would quote the part that has spaces, e.g.
# &$exe -p -script="H:\backup\scripts temp\vss.cmd" E: M: P:
#
# But not in Powershell. That will simply confuse it. Instead, just place the entire parameter in quotes, e.g.
# &$exe -p "-script=H:\backup\scripts temp\vss.cmd" E: M: P:
#
# If it is necessary for the quotes to be passed on to the external command (it very rarely is),
# you will need to double-escape the quotes inside the string, once for PowerShell using the backtick character (`),
# and again for the parser using the backslash character (\).
# &$exe -p "-script=\`"H:\backup\scripts temp\vss.cmd\`"" E: M: P:
This is a FASTCOPY BUG as srcfile and srcfile_w never worked for me even without BOM.drbeat wrote:v3.31
Changes:
Allow BOM in the specified files by /srcfile= or /srcfile_w= options.
But same problem exists. Any suggestions?
Code: Select all
c:\fastcopy\test-srcfile_w\01.txt
c:\fastcopy\test-srcfile_w\02.txt
c:\fastcopy\test-srcfile_w\03.txt
Code: Select all
TOTALCMD#BAR#DATA
cmd /c
copy %WL %T\file.txt
C:\Windows\System32\cmd.exe
FileList UTF16
-1
Code: Select all
TOTALCMD#BAR#DATA
c:\tools\bin64\fastcopy.exe
/no_exec /cmd=force_copy /open_window /speed=full /to="%T" %P%S
c:\tools\bin64\fastcopy.exe
-1