Search found 59 matches

by budhax
16 Mar 2007 12:44
Forum: DOS Batch Forum
Topic: Build a html file from .URL files
Replies: 2
Views: 5676

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: 6239

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: 6239

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: 5754

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: 6314

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: 5754

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: 6314

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: 6314

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: 15047

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: 15047

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: 7206

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

not concluant result

B. Thank you very much, it helps a lot. A1. Start menu > run > cmd /U DosCommandRef.bat and I got: DOS command reference Windows Version : Microsoft Windows XP [version 5.1.2600] Document Source : m Created by : DosCommandRef.bat Test1 Test2 DOS Batch Source Script that created this Document TOPTest...
by budhax
14 Oct 2006 15:25
Forum: DOS Batch Forum
Topic: Accent lettres are lost / FOR loop to make multiple folders
Replies: 7
Views: 15047

Accent lettres are lost / FOR loop to make multiple folders

Hello, A. The accent letters are lost (transformed: è->Š) using this BATCH file m on a French MS Win XP (no SP) system. How to keep the accent letters ? We get the accent in a DOS session, I mean the accents appear. B. FOR /L %%I in (1,2,5) DO ( SET /A v=1+%%I MD page%%I_%v% ) This script should cre...
by budhax
10 Oct 2006 15:54
Forum: DOS Batch Forum
Topic: How to get the current folder name ?
Replies: 2
Views: 7206

How to get the current folder name ?

Hello,
How to get the current folder name (not the full path) ?


In other words, how to get the last part of a string like
C:\folderA\folderB\folderC
using the bachslash delimiter "\"

Thanks.