For /F command only opens .TXT file Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › General Scripting › For /F command only opens .TXT file This topic has 2 replies, 3 voices, and was last updated 7 years, 6 months ago by Rems. Viewing 1 post (of 1 total) Author Posts TOMJLAELMember May 11, 2013 at 9:06 am #161506 Hello all, Posting in here because this is a scripting question, but also posted in the AD forum due to it’s relation to AD (dsmove command). Please forgive the double posts I’m devising some dsquery / dsmove commands , just experimenting around. I’m experimenting with using for /f command to parse each line of .txt file. The .txt file contains the DN of the objects I want to move. However, all that happens is the .TXT file opens. It sits there, then I close it, and the command completes, but nothing’s been moved in AD Here’s my command for /f “Tokens=* delims=” %a in (‘%userprofile%desktop8months.txt’) do (‘dsmove “%a” -newparent “OU=8months,OU=oldcomp,DC=office,DC=local”‘) Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.