Renaming a Windows directory

13 views
Skip to first unread message

Dimitri Yioulos

unread,
Mar 8, 2016, 11:14:24 AM3/8/16
to Ansible Project
I need to preserve a Windows directory as "directory.bak".  I was hoping this might work, but it doesn't:

- raw: c:\windows\system32\cmd.exe rename C:\directory C:\directory.bak

Is there a way to accomplish what I'm looking to do?

Thanks

Dimitri Yioulos

unread,
Mar 8, 2016, 11:23:33 AM3/8/16
to Ansible Project
I found the solution:

- raw: c:\windows\system32\cmd.exe  /C rename C:\testdir testdir.bak
Reply all
Reply to author
Forward
0 new messages