Re: Batch files

"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

Reply to
Paul E. Schoen
Loading thread data ...

...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*.
Reply to
JeffM

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.

Reply to
MooseFET

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.