Search found 59 matches

by budhax
08 Oct 2008 08:16
Forum: DOS Batch Forum
Topic: script.bat: how to get the path of its shortcut script.lnk ?
Replies: 0
Views: 3735

script.bat: how to get the path of its shortcut script.lnk ?

Hello, Let's a .BAT file "test.bat" like: ECHO.Path of this script %~nx0: %~DP0 ECHO.Path of its Windows shortcut(.LNK): __ ? Pause&EXIT and its MS Windows shortcut "test.lnk" (located in another folder). How to get the path (and file name) of this shortcut "test...
by budhax
02 Sep 2008 18:26
Forum: DOS Batch Forum
Topic: How to block/unblock a domain (for web browsing)?
Replies: 1
Views: 3828

How to block/unblock a domain (for web browsing)?

Hello, A. Is there a DOS command to block/unblock a specific domain (like www.game.fr)? I would like the same/similar result as adding/removing this line 127.0.0.1 www.game.fr in this file c:\windows\system32\drivers\etc\hosts Ref: m B. If I use this basic way: echo 127.0.0.1 www.game.fr>>"c:\w...
by budhax
30 Aug 2008 08:23
Forum: DOS Batch Forum
Topic: How to catch empty value (TOO) in FOR loop?
Replies: 1
Views: 3334

How to catch empty value (TOO) in FOR loop?

Hello, From this file: in.sh droped on my script below, (indentation are tabs characters) #Comment U1 V11 W111 W112 I would get this output (and catch empty values too): [U1] [] [] [] [V11] [] [] [] [W111] [] [] [W112] My script jump over empty value, and outputs this: [U1] [] [] [ "V11] [] [] ...
by budhax
27 Aug 2008 12:36
Forum: DOS Batch Forum
Topic: Extract e-mail from HTML file (next step?)
Replies: 1
Views: 3622

I found other Javascript tools (extracting e-mail):

http://javascript.internet.com/forms/extract-email.html (basic but fine)

http://www.surf7.net/product/tools/extractor.php (more option and remove duplicate items)


And a solution from tlem:
http://astase.com/forums/viewtopic.php?pid=17727#p17714
by budhax
23 Aug 2008 19:02
Forum: DOS Batch Forum
Topic: Extract e-mail from HTML file (next step?)
Replies: 1
Views: 3622

Extract e-mail from HTML file (next step?)

Hello, What could be the next step of this script bellow to extract e-mail (1 by line) from HTML file like the source of this: m ** USAGE: Drag and drop a HTML file ON the script. Thanks @ECHO OFF @SETLOCAL ENABLEDELAYEDEXPANSION CD /D "%~DP1" IF "%~1"=="" (SET ErrU...
by budhax
17 Aug 2008 23:13
Forum: DOS Batch Forum
Topic: How to cut my Internet connection using DOS commands?
Replies: 1
Views: 4036

How to cut my Internet connection using DOS commands?

1.a How to cut my Internet connection using DOS commands? After those commands: netsh firewall delete portopening TCP 80 netsh firewall delete allowedprogram program = "C:\Program Files\Mozilla Firefox\firefox.exe" I was still connected to Internet!! 1.b How to reverse action 1.a using DOS...
by budhax
15 Aug 2008 18:38
Forum: DOS Batch Forum
Topic: HTML album builder
Replies: 0
Views: 3576

HTML album builder

Hello, This is a basic HTML album builder. It browses recursively all pictures in a folder, building a simple HTML page. Navigation in the album: click ON the left/right image side to go to the previous/next picture. Use the sub folder name as album section title (H2 tag). QUESTION : Is DOS able to ...
by budhax
15 Aug 2008 17:43
Forum: DOS Batch Forum
Topic: CSV to HTML: to be improved
Replies: 4
Views: 5155

Release 1.2 *** ADDED: function trying to find the column' separator. *** CSS is set as: (tab)(space),(space); ::------------------------------------------------------------------ CSV --> HTM ::------------------------------------------------------------------ Version 1.2 ::*** UTILISATION DRAG &...
by budhax
05 Aug 2008 15:36
Forum: DOS Batch Forum
Topic: CSV to HTML: to be improved
Replies: 4
Views: 5155

Here is my final version. WARNING: Values in the CSV shouldn't contain double quote ("). ::------------------------------------------------- Conversion D'un .CSV en .HTM ::*** UTILISATION: DRAG & DROP a .CSV ::Version 1.1 @ECHO OFF @SETLOCAL ENABLEDELAYEDEXPANSION ::************************...
by budhax
04 Aug 2008 16:28
Forum: DOS Batch Forum
Topic: CSV to HTML: to be improved
Replies: 4
Views: 5155

I found a solution. Tested and works fine. ** TO CUSTOMIZE - Set the column separator character: SET SEP=, ** USAGE - Drag & drop a .CSV file on this script. It will build a HTML table. ** PROBLEMS - Column's separator character in data are replaced by space " ". See cell A1 and A2. An...
by budhax
03 Aug 2008 14:52
Forum: DOS Batch Forum
Topic: CSV to HTML: to be improved
Replies: 4
Views: 5155

CSV to HTML: to be improved

Hello, This script convert a .CSV file to a HTML table. Could you HELP me to improve it? I would: 1. Put the first row in a TH tag, then the other line in TR tag. 2. Improve it to work fine for any number of column. This one works fine for 9 columns, but my CVS file has 13 columns. 3. Make the scrip...
by budhax
09 Jun 2008 16:52
Forum: DOS Batch Forum
Topic: A CMD,BAT script launcher
Replies: 1
Views: 4056

A CMD,BAT script launcher

Hello, I used to add "EXIT" command at the end of my CMD scripts. 1. Is it good or bad ? Here is bellow a CMD/BAT script launcher (Launcher.cmd). It works fine but, if the selected launched script contains the EXIT command, the launcher process is killed (too) by this command. So, I cannot...
by budhax
08 Jun 2008 17:08
Forum: DOS Batch Forum
Topic: Remove a printer / apply "List Mode view" for ALL
Replies: 0
Views: 3558

Remove a printer / apply "List Mode view" for ALL

Hello,
On MS Windows Vista, is there a way (using DOS command):
1. to remove a printer (Start menu > C.Panel > Printers) ?
2. to apply "List Mode view" (in Win. Explorer) for ABSOLUTELY all folders of any kind (contact, picture, video, myfolders, ...)?

Thanks and regards.
by budhax
10 May 2008 16:37
Forum: DOS Batch Forum
Topic: Make a script independent of the System drive letter
Replies: 1
Views: 3330

Make a script independent of the System drive letter

Hello, In some case, the "System drive letter" is different of C:, and a script can use an absolute path like C:\folder\bla. So, this script cannot works if MS Windows is installed in a difference drive letter of C: Here is a script using an absolute path in the C: drive (where C: is the S...
by budhax
14 Apr 2008 16:29
Forum: DOS Batch Forum
Topic: 1.Can a subroutine return a value? Yes. 2.Left/Right cut a s
Replies: 0
Views: 4172

1.Can a subroutine return a value? Yes. 2.Left/Right cut a s

Hello, Can a DOS subroutine return a value? Yes, sending to the subroutine the variable name to catch the returned value. See those 2 examples. Subroutine LeftCut returns the a string cut till the first left found character. Subroutine RightCut returns the a string cut till the first right found cha...