hi,
just put "cmd" in the last line, like this .BAT
NoClosePrompt.bat
@echo off
echo hello mathmax
cmd
:: command below will be ignored
cls
Search found 63 matches
- 26 Jun 2007 10:29
- Forum: DOS Batch Forum
- Topic: execute a bat without closing the prompt command
- Replies: 2
- Views: 9227
- 17 Jun 2007 11:42
- Forum: DOS Batch Forum
- Topic: A DOS command closing a "Windows Explorer" window?
- Replies: 1
- Views: 7569
A DOS command closing a "Windows Explorer" window?
Hello, Let's create a folder Folder1 in C:\ and open it (double-click or right-click > explore) this folder. Now we have a "MS Windows Explorer" window titled "C:\Folder1". Let's put in this Folder1 a file close.bat I would close the "Windows Explorer" window titled "C:\Folder1", double-clicking on ...
- 03 May 2007 13:02
- Forum: DOS Batch Forum
- Topic: Remove duplicate file. Add filesize test.
- Replies: 1
- Views: 8075
Remove duplicate file. Add filesize test.
Hello, Here is a script that remove all files in Folder1 if this file exists in Folder2. So, it does something like: Folder1 - Folder2 in other words, it removes duplicate files. This script test only the filename: remove the file in Folder1 if the same filename is present in Folder2. I would to imp...
- 31 Mar 2007 14:46
- Forum: DOS Batch Forum
- Topic: Build a html file from .URL files
- Replies: 2
- Views: 9352
- 16 Mar 2007 12:44
- Forum: DOS Batch Forum
- Topic: Build a html file from .URL files
- Replies: 2
- Views: 9352
Build a html file from .URL files
From those internet shortcut files (in the same a folder) Google.url [InternetShortcut] URL=http://www.google.com/ Yahoo.url [InternetShortcut] URL=http://www.yahoo.com/ I would get a file link.html <a href="http://www.google.com/">Google</a> <a href="http://www.yahoo.com/">Yahoo...
- 10 Feb 2007 16:32
- Forum: DOS Batch Forum
- Topic: How to add a permanent environment variable ?
- Replies: 1
- Views: 9468
- 10 Feb 2007 15:30
- Forum: DOS Batch Forum
- Topic: How to add a permanent environment variable ?
- Replies: 1
- Views: 9468
How to add a permanent environment variable ?
How to add a permanent environment variable ? (using a .BAT or .REG file) Hello, I read this m (under "Permanent Changes") and I added a permanent environment variable using a add_myvar.reg file like this: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Sess...
- 05 Nov 2006 07:29
- Forum: DOS Batch Forum
- Topic: Different current folder for DoubleClick and DragAndDrop
- Replies: 2
- Views: 10090
- 31 Oct 2006 05:13
- Forum: DOS Batch Forum
- Topic: darg and drop: how to get short name of the parametre
- Replies: 3
- Views: 11334
- 31 Oct 2006 05:04
- Forum: DOS Batch Forum
- Topic: Different current folder for DoubleClick and DragAndDrop
- Replies: 2
- Views: 10090
Different current folder for DoubleClick and DragAndDrop
Hello, here is my script dir.bat : dir pause :: and other command lines If you double click this file (dir.bat) you get the file listing of the current folder (the folder where dir.bat is located). Fine. But, if you drag and drop a file on dir.bat, you get allays the file listing of the %USERPROFILE...
- 30 Oct 2006 16:26
- Forum: DOS Batch Forum
- Topic: darg and drop: how to get short name of the parametre
- Replies: 3
- Views: 11334
- 30 Oct 2006 16:10
- Forum: DOS Batch Forum
- Topic: darg and drop: how to get short name of the parametre
- Replies: 3
- Views: 11334
darg and drop: how to get short name of the parametre
Hello, my BAT file test.bat contains: set p1=%1 echo %p1% pause and I get: "C:\Documents and Settings\sam\Bureau\folderA" if I drag the folder "folderA" located on the desktop (=Bureau in French) and drop it on the test.bat file. My goal is to get only folderA , without the full path and without the...
- 26 Oct 2006 12:03
- Forum: DOS Batch Forum
- Topic: Accent lettres are lost / FOR loop to make multiple folders
- Replies: 7
- Views: 23719
- 20 Oct 2006 16:19
- Forum: DOS Batch Forum
- Topic: Accent lettres are lost / FOR loop to make multiple folders
- Replies: 7
- Views: 23719
- 16 Oct 2006 12:22
- Forum: DOS Batch Forum
- Topic: How to get the current folder name ?
- Replies: 2
- Views: 11796