Solved

Windows Batch File

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now