Batch file

46 views
Skip to first unread message

tharpa

unread,
Jul 12, 2010, 4:17:28 PM7/12/10
to dirhtml discussion group
I tried creating a Batch file (F7). However, when I run the batch
file, nothing happens. Same thing if I run the vbs file.

It works fine if I run dirhtml with F3.

Any ideas, or where to start looking?

thanks,

Tharpa

dirhtml

unread,
Jul 12, 2010, 4:25:10 PM7/12/10
to dirhtml discussion group
Can you post the .bat and .vbs files? No problems have been reported
lately.

The first place to look is "does the .init file exist?"

.vbs files should generally look something this:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run("""dirhtml.exe"" ""my_bat_file.init""")

and .bat files like this:

"dirhtml.exe" "BAT~1.INI"
REM "dirhtml.exe" "my_bat_file.init"

If the .bat/.vbs is saved somewhere other than the dirhml.exe folder,
there should be a relative or absolute reference to the location of
dirthml.exe, depending on the drive it's created in.

dirhtml

unread,
Jul 12, 2010, 4:27:10 PM7/12/10
to dirhtml discussion group
One more thought... is "Auto-Launch batch generated files" selected
on the Input/Output page?

tharpa

unread,
Jul 12, 2010, 4:37:58 PM7/12/10
to dirhtml discussion group
"dirhtml.exe" "BUILD_~1.INI"
REM "dirhtml.exe" "build_htmlbat.init"

and

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run("""dirhtml.exe"" ""build_htmlbat.init""")

The init file does exist.

In a separate trial, I tried removing the INI file reference, and it
did successfully launch dirhtml.

tharpa

unread,
Jul 12, 2010, 4:38:46 PM7/12/10
to dirhtml discussion group
I have tried it with and without selecting that option.

dirhtml

unread,
Jul 12, 2010, 4:40:24 PM7/12/10
to dirhtml discussion group
Did you re-build the bat/vbs files after selecting "Auto-Launch" ?

In batch file mode, dirhtml only cares about what's in the .init file.

tharpa

unread,
Jul 12, 2010, 4:56:17 PM7/12/10
to dirhtml discussion group
Yes. Still doesn't work.

tharpa

unread,
Jul 13, 2010, 10:06:36 AM7/13/10
to dirhtml discussion group
Eric,

It seems that it doesn't like paths of the form \\fg47\etc. When I
changed to the path to the same spot, but with mapped drive location,
e.g. M:\etc., it worked fine.

Tharpa

On Jul 12, 4:40 pm, dirhtml <enitzs...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages