windows - Batch syntax error with moving -


i try move test.txt file current direction (desktop) program files(x86) folder. current batch code:

@echo off move %~dp0\test.txt %programfiles(x86)% pause 

i added pause see "errors/results" , see there in cmd window, answers

syntaxerror.

i run batch file admin, still same issue...

any help/ideas? need create installer of batch. thanks

now got problem move folder, have answer move file, move folder, admin rights, says acces denied...

due of stephand , cristifati:

@echo off move %~dp0\test.txt "%programfiles(x86)%" pause 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -