Questions tagged [notepad]

Notepad is a simple text editor for Microsoft Windows. Use this tag for issues relating to interfacing with Notepad and/or duplicating Notepad functionality.

Notepad is a simple text editor for Microsoft Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.

787 questions
3
votes
2 answers

What "cscript //NoLogo" stands for?

This is a java program code that runs the Notepad program and pastes a specific text stored in this program itself.... I was wondering if you can explain me the String vbs value, and also the File file, and the ("cscript //NoLogo " + file.getPath())…
Sarsur.A
  • 295
  • 1
  • 4
  • 7
2
votes
1 answer

win32com (python) error

i am trying to automate a action in notepad for a program im working on and i cant figure out an error message i am getting. import os import win32com object = win32com.client.Dispatch("Notepad.Application") error Traceback (most recent call…
Jon Crawley
  • 81
  • 1
  • 2
  • 7
2
votes
1 answer

Why does Java StandardCharsets provide three "UTF-16" encoding types but Notepad only provides 2 options (BE & LE)?

StandardCharsets provides three entries for UTF-16: /** * Sixteen-bit UCS Transformation Format, big-endian byte order */ public static final Charset UTF_16BE = new sun.nio.cs.UTF_16BE(); /** * Sixteen-bit UCS…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
2
votes
1 answer

I'm writing an automation code for notepad

I want user to enter a path and then my program should open all txt files in that folder. i wrote my code like this and i have no idea how to tell it to open all the txt files. thanks for your help. from pywinauto import application import…
gmh
  • 23
  • 4
2
votes
2 answers

Difference between Long and long?

I am going through the 2nd exercise of the android example the notepad app, I have this a question about the difference between Long and long that was used to define the mRowId. The exercise is here:…
D.Zou
  • 761
  • 8
  • 25
2
votes
2 answers

Why is JScrollpane not added to JTextArea in my TextEditor?

I can't understand why the JScrollpane won't be added to JTextArea, is this because of some sort of layout problem? This is a text editor made by my friend, he initially made it with only AWT but I then replaced AWT TextArea with swing's JTextArea…
2
votes
0 answers

Python - Pylatex header?

Currently I am making a .txt file with Python, to later transform it into a PDF file using PyLaTeX. This is the code I am using: from pylatex import Document, PageStyle, LineBreak, Section, Subsection, Math, Alignat, LargeText, Center,…
LoboFJP
  • 21
  • 3
2
votes
2 answers

Notepad++ regex How to Replace third occurrence of slash & bypass the first and seconds?

I have strings as below. ABC//DEG//IJK//LMN//OPQ//rstuvwxyz BCA//EGD//JKI//MNL//PQO//stuvwxyzr ACB//DGE//IJK//LNM//OQP//rstuvwxyz ABC//DEG//IJK//LMN//OPQ//rstuvwxyz CAB//GDE//KIJ//NLM//QOP//rstuvwxyz BAC//EDG//JIK//MLN//POQ//rstuvwxyz I want it to…
Haji Rahmatullah
  • 390
  • 1
  • 2
  • 11
2
votes
1 answer

Unable to edit the contents of the .txt file because it is gibberish

I have obtained a data.txt file from an online source. When I open the file with Notepad, I see the random characters as shown in the figure. I attempted to open the file using the following python code snippet: my_file = 'data.txt' f =…
santobedi
  • 866
  • 3
  • 17
  • 39
2
votes
1 answer

C# - Opening text file with notepad minimized?

It doesn't look like the Minimized style has an effect: string logFilePath = @"c:\mylog.log"; ProcessStartInfo startInfo = new ProcessStartInfo(logFilePath) {WindowStyle = ProcessWindowStyle.Minimized}; Process.Start(startInfo); Thanks.
alhazen
  • 1,907
  • 3
  • 22
  • 43
2
votes
1 answer

RStudio not showing code in Rmd file, while Notepad does

I'm currently running into an issue of a .Rmd file opening in RStudio without actually populating the Source pane with the code. The file was written in RStudio, and the code shows up when I open the file in Notepad (and copies with the right…
Jadon
  • 124
  • 9
2
votes
3 answers

Remove Carriage Return & Line Feed from Concatenated Trailer Record in SQL?

I have a resultant dataset from a SQL query run in SSMS that includes a 1-row trailer record that exports & saves to Notepad in .txt format. The trailer record, however, automatically includes hex control to include a line feed/carriage record…
Eric K.
  • 121
  • 3
  • 17
2
votes
2 answers

Error while executing notepad example

I am testing the example given on http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html. I have followed the steps as mentioned in the tutorial. The application is successfully launched in the emulator But when i click on the…
Pankaj Khurana
  • 3,243
  • 10
  • 50
  • 79
2
votes
2 answers

How to replace multiple keywords with double quote (" ") in notepad++

I need some help. I'm trying to replace multiple keywords in notepad++. See example below: Find all: apple alpha anchor ants all am are Replace with: "apple" "alpha" "anchor" "ants" "all" "am" "are" Is there a way to replace it in one go?
Zoe C
  • 21
  • 1
2
votes
1 answer

Jmeter text format to "add from clipboard"

I need to paste a lot of values in my jmeter HTTP Request and I want paste from a notepad++, notepad... I knnow to separate with "=" names and values but how can I separate rows?