Search found 63 matches

by budhax
05 Sep 2010 07:12
Forum: DOS Batch Forum
Topic: How to duplicate randomly some files ?
Replies: 6
Views: 8202

How to duplicate randomly some files ?

Hello, Let's a folder containing some PDF files: GeM-13117.pdf GeM-14404.pdf GeM-16853.pdf GeM-17914.pdf GeM-20255.pdf GeM-20559.pdf SOS-647272.pdf SOS-665824.pdf SOS-668677.pdf SOS-674574.pdf SOS-676535.pdf I would write a batch script duplicating randomly some files. The duplicated files will be e...
by budhax
26 Aug 2010 03:50
Forum: DOS Batch Forum
Topic: Find the "programm files" folder for both platform: 32/64bit
Replies: 1
Views: 3412

Find the "programm files" folder for both platform: 32/64bit

Hello, 1. Is this script a good/safe way to find the folder where softwares are installed, independently of the platform 32bit or 64bit ? SET PF=%PROGRAMFILES% IF /i NOT "%PROCESSOR_ARCHITECTURE%"=="x86" SET PF=%PF% ^(x86^) ECHO %PF% Pause 2. On a MS Windows 64bit platform, where...
by budhax
18 Jan 2009 20:15
Forum: DOS Batch Forum
Topic: How to put a string in the clipboard memory?
Replies: 1
Views: 4859

by budhax
17 Jan 2009 21:43
Forum: DOS Batch Forum
Topic: How to put a string in the clipboard memory?
Replies: 1
Views: 4859

How to put a string in the clipboard memory?

Hello,
Using DOS command, how to put a string in the clipboard memory (like Ctrl+C)?
Then you cat get this string with the shortcut Ctrl+V (when the DOS script is finish).
Thanks
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: 6933

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

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

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

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

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

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

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

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

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

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

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...