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.
Open File > Create the File ? Turn it off???
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
kingconfusion
- Posts: 1
- Joined: Fri Aug 01, 2008 7:05 pm
File Open Query?
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
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(':!:')
---------------------------------------------------------------------------
@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