[LISP] How to check URL exists?

[LISP] How to check URL exists?

iBlachu
Advocate Advocate
733 Views
7 Replies
Message 1 of 8

[LISP] How to check URL exists?

iBlachu
Advocate
Advocate

Hi,

 

How to check using pure LISP if there is a file with the given name on the server?

 

Is it possible?

 

0 Likes
734 Views
7 Replies
Replies (7)
Message 2 of 8

Sea-Haven
Mentor
Mentor

Searching a drive for a single file there is a easy way, you can use the software "Everything" its free and is great to find files. You can run a external shell cmd from Autocad. 

 

Everything - voidtools

 

es.exe dwgname.dwg -full-path-and-name >d:/acadtemp/dwglist.txt

 

The dwglist.txt will have all the dwg locations on all drives indexed by Everything.

You need this also Command Line Interface - voidtools

0 Likes
Message 3 of 8

iBlachu
Advocate
Advocate

I need a pure LISP (AutoLISP) solution without VisualLisp if possible.

0 Likes
Message 4 of 8

hak_vz
Advisor
Advisor

Check this post and solution from @doaiena 

 

What software do you use that you need solution in vanilla autolisp. Without using vl functions solution is impossible.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 5 of 8

Sea-Haven
Mentor
Mentor

What I posted is pure old lisp uses the SHELL command. You do need to download the program Everything it is well worthwhile having finds files instantly compared to explorer that works like 50% of the time. 

 

(command "._shell" "es.exe dwgname.dwg -full-path-and-name >d:/acadtemp/dwglist.txt")

0 Likes
Message 6 of 8

Sea-Haven
Mentor
Mentor

Post the page link, it currently goes to all of the posts by doiaena

0 Likes
Message 7 of 8

hak_vz
Advisor
Advisor

@iBlachu  Check this solution from @doaiena and my reply to this post about further action needed.

 

 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Message 8 of 8

Sea-Haven
Mentor
Mentor

Hak_vz thanks for update had a look.

 

Also "How to check where is URL" and then "if there is a file with the given name on the server?" which one is it or both ?