Re: Batch files

Apr 27, 2008 2 Replies

"Jim Thompson" wrote in message news: snipped-for-privacy@4ax.com...



Anyone remember enough about batch files to know how to handle modern
> _long_ filenames?
>
> I want to execute...
>
> C:\\NewsProxy\\NewsProxy.exe
>
> then execute...
>
> C:\\Program Files\\Agent\\agent.exe

You could also try JavaScript or WinScript. See the following:


formatting link


formatting link


formatting link


It is probably cleaner and more powerful than using batch files.


Note the use of %windir% to get the current directory, which can be useful.


Quotation marks are still required, however.


Paul


...which only works inside a browser??

Which will be replaced by M$'s "next big thing" next week??

formatting link
*-*-*-*-*-tips+ported-to-*-*-*-*-Windows-*+*-*-knowledge-*-here-to-stay-since-1978+Windows.PowerShell+Windows.Scripting.Language+Don't-*-*-learn-*-another-Microsoft-scripting-invention+Meet.bash+rewrite+batch.files+VBScript+without-*-*-*-either-*-*-*-*-*-*-*-*-*-*+*-*-*-*-*-*-*-*-additional-*-programs&strip=1

See the following: [links]

Name something that *isn't*. 8-(

"Current directory" is incorrect. The standard representation for that is a single dot (or nothing).

formatting link

What you referred to is environment variable for

*The directory where Windows is installed*.

If it is a Windows system, you can't really call it "JavaScript". Microsoft includes "JScript" which is quite different from real Javascript. JavaScript was intended to be "safe". Being safe does not include running external programs.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required