?
Solved

Windows Batch File

Posted on 2011-03-07
2
Medium Priority
?
409 Views
Last Modified: 2012-05-11
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
Comment
Question by:arunykand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
TMWSIY earned 2000 total points
ID: 35057304
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
 

Expert Comment

by:wizofoz244
ID: 35059243
I personally prefer notepad2.  It also contains syntax highlighting and is freeware.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question