command line bug

For technical support for all editions of CSE HTML Validator. Includes bug reports.

command line bug

Postby roedygr » Thu Jan 28, 2010 11:51 am

"F:\Program Files (x86)\HTMLValidator90\cse90.exe" %file


If %file in an unqualified file name, this will work only if the last time you used cse, you were in the same directory as now.
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 242
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Re: command line bug

Postby Albert Wiersch » Thu Jan 28, 2010 12:56 pm

I don't understand how this is a bug. If you are passing filenames without full path information, then it should use the current directory as a base to find the file, so if you change the current directory from one that works, then a relative path may not work anymore.

You may want to "cd" first:
cd "F:\Program Files (x86)\HTMLValidator90\"

Or CD to whatever directory you want to be the current one.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: command line bug

Postby roedygr » Fri Jan 29, 2010 10:33 am

That's was a bad explanation. Let me try again.

Consider this bat file:
CD \dir1
F:\Program Files (x86)\HTMLValidator90\cse90.exe" file1.html
CD \dir2
F:\Program Files (x86)\HTMLValidator90\cse90.exe" file2.html

It should on the second go see file1 still loaded in dir1 and file2 newly loaded in dir2.
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 242
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Re: command line bug

Postby Albert Wiersch » Fri Jan 29, 2010 11:35 am

I think this has been fixed/addressed in the v10 beta:
http://www.htmlvalidator.com/htmlval/ht ... nload.html

Can you try it and let me know? Thanks.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron