[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 412
  • Last Modified:

Windows Batch File

I have  a batch file with the following commands:

pause
ewfmgr c: -commitanddisable –live
pause

Open in new window


But when I execute it, for some reason it seems to translate the ewfmgr command to this (as seen on the command window, and obviously the command is not working)

ewfmgr c: -commitanddisable ûlive

Open in new window


Notice it is putting a u with (shift 6) character where the '-live' is supposed to be...Yes, I have tried typing the same exact line manually in a command window and it works just fine, only via the batch file does it seem to get messed up, any help?
0
arunykand
Asked:
arunykand
1 Solution
 
TMWSIYCommented:
What app are you using to create the batch file?  Use notepad not wordpad and copy and paste from the cmd line that works to notepad.
0
 
wizofoz244Commented:
I personally prefer notepad2.  It also contains syntax highlighting and is freeware.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now