Tuesday, 2 July 2019

windows - Robocopy: show skipped files and files with an error while copying

I'm using the following command for copying files while preserving timestamps:


robocopy [source] [destination] /E /ZB /COPY:DAT /DCOPY:T /R:1 /W:5 /V /NFL /NDL /NS /NC /NP /log:"[log-path]" /XD "System Volume Information" "Recycler"

Now in the log files I see that there are files skipped or there are errors while copying. But I don't know which file had an error or is skipped.


What I'm doing wrong?

How to put 19 digit or more digit number in a excel cell

How to put 19 digit or more digit number in a excel cell.


I want to save 19 digit number in cell of column .How I will format that cell.Can anybody give me some idea in this regard?

windows - How to find which program captures global keyboard shortcut?




Possible Duplicate:
How can I determine which process owns a hotkey in Windows?



Some of my global shortcuts stopped working, and I cannot figure out why. I suspect that there is some program that captures these shortcuts, but I don't know how to figure out which one is it (if any). Using windows7rc.



Answer



Maybe you'll have some luck with Deep System Explorer. They list Hotkeys in the features they support.


I couldn't run it on my Windows 7 64-bits after install (driver error), not sure wich version (32 or 64 bits) of 7 you're using.


Another one, HotKey Commander, is listed in this thread at Sysinternals.


Batch Removing Newline in txt files in Windows Command line (cmd)

There are unnecessary new lines in txt files which i am merging during batch processing. I am thinking fof first removing all new lines and then inserting only one.


how can i do that in batch file

How do I get Vim home directory?


I wanted to set the VIMHOME variable this way (common to Windows and Linux),


let $VIMHOME=expand("%:p")."/..",

so that VIMHOME is "~/.vim" in Linux or "path/to/vimfiles" in Windows.


I put this in a var.vim file and placed this in the plugin directory. It loads properly, but VIMHOME is set only to "./..".


How do I get the full path of a file using expand?


Is there an easy way to set VIMHOME?


Edit: I changed the expression to:


let $VIMHOME=expand(":p:h")

Now, VIMHOME is set to "~/.vim/plugin" in Linux.


My requirement is setting VIMHOME to "~/.vim" or "path/to/vimfiles". But,


let $VIMHOME=expand(":p:h")
let $VIMHOME=expand("$VIMHOME:p:h")

is not working.


How can I resolve this?



Answer



Put this in your var.vim plugin file:


let $VIMHOME=expand(':p:h:h')

% in expand will refer to the file being edited (i.e. the pathname given on the command line). will refer to the file being ‘sourced’ (i.e. the plugin or startup file that is active when the expansion is made).


The :p modifier makes the pathname absolute and the :h suffix drops the last pathname component (i.e. the filename in this case).


How to force excel to stop thinking your cell contains a formula


I'm trying to enter, "-0.0028 (204)" into a cell in excel, but it keeps attempting to evaluate this (non-)expression as, "=-0.0028*(204)". This occurs even when I set the cell format to, "General". Any suggestions? Thank you!



Answer



Use the single quote ' before whatever you're entering.


Read registry files in Windows "config" directory from a backup?

I have a backup of a computer and I need to get some information from its registry files. I have the files from the registry, but cannot find a tool or anything to let me view this information, just as I would on a machine using regedit.


Any ideas? I do not want restore the computer backup - do I have any options?

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...