Wipeout routine doesn't work now

Wipeout routine doesn't work now

Anonymous
Not applicable
643 Views
5 Replies
Message 1 of 6

Wipeout routine doesn't work now

Anonymous
Not applicable

HI i am writing simple routine aims to just zoom extend and quit for multble sheets so the script file contains the following

zOOM
e
qsave
quit

 

and the .bat file is the following

 

{{{{{{{{{{{{{{{{{{{{{{{{FOR %%V IN (*.DWG) DO START /W "c" "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" %%V /nologo /b "C:\IssueRoutine.scr"
FOR %%V IN (*.BAK) DO DEL %%V}}}}}}}}}}}}}}}}}}}}}}}}}}}}}

 

an AutoCAD massage appears as follows

Cannot Find the specified drawing file.

please verify that the file exists

 

then the after pressing ok the AutoCAD open the browser so can any one please help me solv this problem

thanks for your time

 

0 Likes
Accepted solutions (2)
644 Views
5 Replies
Replies (5)
Message 2 of 6

hmsilva
Mentor
Mentor
Accepted solution

 

Hi nabsterhema,

 

i would suggest to hardcode the start path

i.e.

 

FOR %%V IN (C:\"My"\"Full"\"Path"\*.dwg) DO START /W "c" "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" %%V /nologo /b "C:\IssueRoutine.scr" FOR %%V IN (C:\"My"\"Full"\"Path"\*.bak) DO DEL %%V

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 3 of 6

Anonymous
Not applicable

yes it works thanks a lot but i want to know what is the code need to be writtrn to automatically load the files in the same loaction of bat file

0 Likes
Message 4 of 6

hmsilva
Mentor
Mentor
Accepted solution

@Anonymous wrote:

yes it works thanks a lot but i want to know what is the code need to be writtrn to automatically load the files in the same loaction of bat file


You're welcome, nabsterhema!

 

I do not deal with batch files for some time, but possibly something like this will do the trick

 

cd/%~dp0
FOR %%V IN (*.DWG) DO START /W "c" "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" %%V /nologo /b "C:\IssueRoutine.scr"
FOR %%V IN (*.BAK) DO DEL %%V

 

Hope this helps,
Henrique

EESignature

Message 5 of 6

Anonymous
Not applicable

yes thanks it works

0 Likes
Message 6 of 6

hmsilva
Mentor
Mentor

You're welcome, nabsterhema!
Glad I could help

Henrique

EESignature

0 Likes