Solved

Windows Batch File

Posted on 2011-03-07
2
406 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 500 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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…

688 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