You are not logged in.

#1 01 Jul 2015 11:22

kg274
New Member
Registered: 01 Jul 2015
Posts: 3

Ask for the folder

Modify the code.@ first strike location need to ask Select all files in the browsed path and second strike is to where we need to save.


c:
cd "C:\Bentley\Program\MicroStation"
msbatch cnvdgn inname:D:\Projects\TUNISE\Dgns\3dDgns\*.dgn outname:D:\Projects\TUNISE\Dgns\3dDgns\Convert\
pause

Offline

#2 01 Jul 2015 12:11

bluesxman
Member
From: UK
Registered: 29 Dec 2006
Posts: 1,129

Re: Ask for the folder

That doesn't really qualify as a coherent question, but I think you're asking for something like this...

@echo off
set /p "indir=Source directory: "
set /p "outdir=Target directory: "
c:
cd "C:\Bentley\Program\MicroStation"
msbatch cnvdgn inname:"%indir%\*.dgn" outname:"%outdir%\"
pause

Last edited by bluesxman (01 Jul 2015 12:12)


cmd | *sh | ruby | chef

Offline

#3 01 Jul 2015 12:47

kg274
New Member
Registered: 01 Jul 2015
Posts: 3

Re: Ask for the folder

Actually I need to convert 3d dgn files into 2d dgn files using msbatch.bat file the mentioned path "c:\program data\...\"

Offline

#4 01 Jul 2015 13:44

kg274
New Member
Registered: 01 Jul 2015
Posts: 3

Re: Ask for the folder

Thank you

Offline

Board footer

Powered by