Search found 63 matches

by budhax
26 Jun 2007 10:29
Forum: DOS Batch Forum
Topic: execute a bat without closing the prompt command
Replies: 2
Views: 6056

just put "cmd" in the last line

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
by budhax
17 Jun 2007 11:42
Forum: DOS Batch Forum
Topic: A DOS command closing a "Windows Explorer" window?
Replies: 1
Views: 5123

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 ...
by budhax
03 May 2007 13:02
Forum: DOS Batch Forum
Topic: Remove duplicate file. Add filesize test.
Replies: 1
Views: 5542

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...
by budhax
31 Mar 2007 14:46
Forum: DOS Batch Forum
Topic: Build a html file from .URL files
Replies: 2
Views: 5933

Sure, thanks a lot.
by budhax
16 Mar 2007 12:44
Forum: DOS Batch Forum
Topic: Build a html file from .URL files
Replies: 2
Views: 5933

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...
by budhax
10 Feb 2007 16:32
Forum: DOS Batch Forum
Topic: How to add a permanent environment variable ?
Replies: 1
Views: 6479

All fine if I reboot my system ;)
by budhax
10 Feb 2007 15:30
Forum: DOS Batch Forum
Topic: How to add a permanent environment variable ?
Replies: 1
Views: 6479

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...
by budhax
05 Nov 2006 07:29
Forum: DOS Batch Forum
Topic: Different current folder for DoubleClick and DragAndDrop
Replies: 2
Views: 6016

Thanks so much, it works perfectly ;-)
by budhax
31 Oct 2006 05:13
Forum: DOS Batch Forum
Topic: darg and drop: how to get short name of the parametre
Replies: 3
Views: 6610

Thanks a lot, it helps me :o
by budhax
31 Oct 2006 05:04
Forum: DOS Batch Forum
Topic: Different current folder for DoubleClick and DragAndDrop
Replies: 2
Views: 6016

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...
by budhax
30 Oct 2006 16:26
Forum: DOS Batch Forum
Topic: darg and drop: how to get short name of the parametre
Replies: 3
Views: 6610

I mean, at least without the full path.
by budhax
30 Oct 2006 16:10
Forum: DOS Batch Forum
Topic: darg and drop: how to get short name of the parametre
Replies: 3
Views: 6610

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...
by budhax
26 Oct 2006 12:03
Forum: DOS Batch Forum
Topic: Accent lettres are lost / FOR loop to make multiple folders
Replies: 7
Views: 15597

Never mind, it's OK (readable) without accent.

Merci beaucoup pour ton aide.
(Thanks a lot for you help)
by budhax
20 Oct 2006 16:19
Forum: DOS Batch Forum
Topic: Accent lettres are lost / FOR loop to make multiple folders
Replies: 7
Views: 15597

A3) I got: C:\>mode con cp État du périphérique CON: ------------------------- Page de codes : 850 A4) I got: C:\>for %a in (Spécifie paramètres appelé) do @echo.'%a' 'Spécifie' 'paramètres' 'appelé' Using DosCommandRef.bat and your new help.bat file, I got: DOS command reference Windows Ver...
by budhax
16 Oct 2006 12:22
Forum: DOS Batch Forum
Topic: How to get the current folder name ?
Replies: 2
Views: 7492

Thanks so much, it helps me. I used it in this srcipt, to archive the folder contaning the BAT script: Folder2RAR.bat FOR %%a in ("%CD%") DO SET CurFol=%%~na CD.. WinRAR a "%CurFol%.RAR" "%CurFol%" and I can use the same BATCH file for any folder . Thank you.