Open File > Create the File ? Turn it off???

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
kingconfusion
Posts: 1
Joined: Fri Aug 01, 2008 7:05 pm

Open File > Create the File ? Turn it off???

Post by kingconfusion »

When you go to open a file and type in a name, if that file doesn't exist, a dialog pops up asking, Create the File? Yes, No.
Is there a way to turn that dialog box off?
Thanks.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

No. What do you want it to do instead?

Andrew
rmayell
Posts: 2
Joined: Sat Sep 06, 2008 4:15 pm

File Open Query?

Post by rmayell »

It would be nice if the 'confirmation' message that appears if you specify a file that doesn't exist could be turned off. As I generally use the command line (too much *nix), invoking TextPad with a new filename and having to confirm is a pain in the neck.
Rik
rmayell
Posts: 2
Joined: Sat Sep 06, 2008 4:15 pm

Post by rmayell »

If you really want to get rid of this feature try invoking TextPad using the batch file below:

---------------------------------------------------------------------------

@ECHO OFF

REM No file specified

IF "%1"=="" GOTO LOADTPAD

echo %1 | find "*" > NUL

REM Filename contains a wildcard

IF "%errorlevel%"=="0" GOTO LOADTPAD

REM File exists

IF EXIST %1 GOTO LOADTPAD

REM File does not exist so create it

ECHO. >%1

:LOADTPAD

REM Load TextPad version 5

START "" /MAX "C:\Program Files\TextPad 5\TEXTPAD.EXE" -q %1

---------------------------------------------------------------------------

Ok, it isn't pretty but it does work.javascript:emoticon(':!:')
Rik
Post Reply