filepath - powershell move-item argument with spaces -


i have looked web powershell , path names spaces, nothing seems work cmdlet.

my first argument doesn't have spaces, second argument does:

move-item c:\users\rb398970\documents\weekendupdatereport\weekendclosereport.pdf c:\users\rb398970\workspaces\supply chain\document templates\ 

i have tried surrounding second argument double quotes, 2 sets of double quotes, double quotes , nested single quotes, double quotes single quotes in front of white spaces, using ampersand in front, , multiple other things. none have worked.

i know second argument valid path name - can search in explorer , find directory.

any ideas?

do have access powershell ise (integrated script editor)? helpful can script checking insure have quotes in right locations, etc.

either of these should work you..

move-item 'c:\users\rb398970\documents\weekendupdatereport\weekendclosereport.pdf' 'c:\users\rb398970\workspaces\supply chain\document templates\'   move-item "c:\users\rb398970\documents\weekendupdatereport\weekendclosereport.pdf" "c:\users\rb398970\workspaces\supply chain\document templates\" 

hope helps.


Comments