Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Dos file problem

I wrote a script in notepad that runs a does command in the command prompt (Windows 7).  The problem is that the dasks (-) all get changes to a u with a line on top when the command is run.  I know it has  something to so with the character set, but I am not sure what.
0
tlatter-isis
Asked:
tlatter-isis
  • 2
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
What font are you using in Notepad?  What happens when you change the font for the batch file to something like Courier New?
0
 
jpdaveyCommented:
Could you send a snippet of the code you are running? At least the line containing the dash ?

Have you tried copying and pasting your code to another program, such as Wordpad or Word, to see what gets pasted?
0
 
tlatter-isisAuthor Commented:
I was able to fix the problem using work instead of notepad, It got rid of the character changes
0
 
tlatter-isisAuthor Commented:
I fixed the problem using microsoft word
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

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