Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.bat files with Win2K

15 REPLIES 15
Reply
Message 1 of 16
Anonymous
483 Views, 15 Replies

.bat files with Win2K

We have just upgraded to windows 2000 from windows 98. We have several
batch files (*.bat) that we use to copy drawing files and create job
folders, now none of them work. Has anyone experienced this and any
suggestions to correct?


--
Ted Evans
CAD Manager
Architecture & Engineering Services
RadioShack Corporation
817-415-2034
15 REPLIES 15
Message 2 of 16
Anonymous
in reply to: Anonymous

there are some dos commands which are no longer supported, and some great
enhancements and new commands available. check w2k help 'command reference'
and see what's up. there's aslo a batch command newsgroup
alt.msdos.batch.nt at microsoft.
--
Jamie Duncan

"Maybe the Hokey Pokey is REALLY what's it all about"
"Ted Evans" wrote in message
news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> We have just upgraded to windows 2000 from windows 98. We have several
> batch files (*.bat) that we use to copy drawing files and create job
> folders, now none of them work. Has anyone experienced this and any
> suggestions to correct?
>
>
> --
> Ted Evans
> CAD Manager
> Architecture & Engineering Services
> RadioShack Corporation
> 817-415-2034
>
>
Message 3 of 16
Anonymous
in reply to: Anonymous

Email me a copy of the bat file and I'll see if it can be altered to work in
W2K

Robert


"Ted Evans" wrote in message
news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> We have just upgraded to windows 2000 from windows 98. We have several
> batch files (*.bat) that we use to copy drawing files and create job
> folders, now none of them work. Has anyone experienced this and any
> suggestions to correct?
>
>
> --
> Ted Evans
> CAD Manager
> Architecture & Engineering Services
> RadioShack Corporation
> 817-415-2034
>
>
Message 4 of 16
Anonymous
in reply to: Anonymous

Rename the file to have a ".cmd" extension.

Matt
mstachoni@comcast.net
mstachoni@bhhtait.com

On Wed, 19 Feb 2003 11:46:11 -0800, "Ted Evans"
wrote:

>We have just upgraded to windows 2000 from windows 98. We have several
>batch files (*.bat) that we use to copy drawing files and create job
>folders, now none of them work. Has anyone experienced this and any
>suggestions to correct?
Message 5 of 16
Anonymous
in reply to: Anonymous

what will that do Matt? Is there an advantage calling it a cmd file?
(just curious)
--
Jamie Duncan

"Maybe the Hokey Pokey is REALLY what's it all about"
"Matt Stachoni" wrote in message
news:vuv75v42u4ou0s4aielvu5i9og10ckuia2@4ax.com...
> Rename the file to have a ".cmd" extension.
>
> Matt
> mstachoni@comcast.net
> mstachoni@bhhtait.com
>
> On Wed, 19 Feb 2003 11:46:11 -0800, "Ted Evans"
> wrote:
>
> >We have just upgraded to windows 2000 from windows 98. We have several
> >batch files (*.bat) that we use to copy drawing files and create job
> >folders, now none of them work. Has anyone experienced this and any
> >suggestions to correct?
>
Message 6 of 16
Anonymous
in reply to: Anonymous

On Wed, 19 Feb 2003 14:14:53 -0800, "Jamie Duncan"
wrote:

>what will that do Matt? Is there an advantage calling it a cmd file?
>(just curious)

I have no idea. But I thought it would be pretty cool if it worked.

Matt
mstachoni@comcast.net
mstachoni@bhhtait.com
Message 7 of 16
Anonymous
in reply to: Anonymous

HA! Matt, you've destroyed my image of you as the all knowing computer
supreme jedi master.

--
Brian K. Harder, AIA
CAD Manager - RNL Design
http://www.rnldesign.com
-----------------------------------------
Remove .ns to email


"Matt Stachoni" wrote in message
news:32a85vo8o1t8ci33ccg3k0r9kuldshn284@4ax.com...
> On Wed, 19 Feb 2003 14:14:53 -0800, "Jamie Duncan"
> wrote:
>
> >what will that do Matt? Is there an advantage calling it a cmd file?
> >(just curious)
>
> I have no idea. But I thought it would be pretty cool if it worked.
>
> Matt
> mstachoni@comcast.net
> mstachoni@bhhtait.com
Message 8 of 16
Anonymous
in reply to: Anonymous

The only problems I had was Syntax related--- placing file names in quotes,
etc.
All my stuff works with slight modifications.


"Ted Evans" wrote in message
news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> We have just upgraded to windows 2000 from windows 98. We have several
> batch files (*.bat) that we use to copy drawing files and create job
> folders, now none of them work. Has anyone experienced this and any
> suggestions to correct?
>
>
> --
> Ted Evans
> CAD Manager
> Architecture & Engineering Services
> RadioShack Corporation
> 817-415-2034
>
>
Message 9 of 16
Anonymous
in reply to: Anonymous

Can you expand on this a little more. What types of "slight modifications"
did you have to make? These are essential for our day to day operation, I
will have to come up with some other method of performing the task these
batch file do if I can not get this resolved.
--
Ted Evans
CAD Manager
Architecture & Engineering Services
RadioShack Corporation
817-415-2034

"Peter Friedrich" wrote in message
news:34881480179D6EAF52C03F5D886467FE@in.WebX.maYIadrTaRb...
> The only problems I had was Syntax related--- placing file names in
quotes,
> etc.
> All my stuff works with slight modifications.
>
>
> "Ted Evans" wrote in message
> news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> > We have just upgraded to windows 2000 from windows 98. We have several
> > batch files (*.bat) that we use to copy drawing files and create job
> > folders, now none of them work. Has anyone experienced this and any
> > suggestions to correct?
> >
> >
> > --
> > Ted Evans
> > CAD Manager
> > Architecture & Engineering Services
> > RadioShack Corporation
> > 817-415-2034
> >
> >
>
>
Message 10 of 16
Anonymous
in reply to: Anonymous

cmd is to be preffered since it uses cmd.exe that is Windows NT's shell and
bat uses command.com that is the DOS shell.

Jimmy
www.jtbworld.com

"Matt Stachoni" skrev i meddelandet
news:32a85vo8o1t8ci33ccg3k0r9kuldshn284@4ax.com...
> On Wed, 19 Feb 2003 14:14:53 -0800, "Jamie Duncan"
> wrote:
>
> >what will that do Matt? Is there an advantage calling it a cmd file?
> >(just curious)
>
> I have no idea. But I thought it would be pretty cool if it worked.
>
> Matt
> mstachoni@comcast.net
> mstachoni@bhhtait.com
Message 11 of 16
Anonymous
in reply to: Anonymous

Hey Ted - why not post 'em in cusfiles so we can have at em

--
Jamie Duncan

"Maybe the Hokey Pokey is REALLY what's it all about"
"Ted Evans" wrote in message
news:DDFFE4AA9A793E880F652895B470743E@in.WebX.maYIadrTaRb...
> Can you expand on this a little more. What types of "slight modifications"
> did you have to make? These are essential for our day to day operation, I
> will have to come up with some other method of performing the task these
> batch file do if I can not get this resolved.
> --
> Ted Evans
> CAD Manager
> Architecture & Engineering Services
> RadioShack Corporation
> 817-415-2034
>
> "Peter Friedrich" wrote in message
> news:34881480179D6EAF52C03F5D886467FE@in.WebX.maYIadrTaRb...
> > The only problems I had was Syntax related--- placing file names in
> quotes,
> > etc.
> > All my stuff works with slight modifications.
> >
> >
> > "Ted Evans" wrote in message
> > news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> > > We have just upgraded to windows 2000 from windows 98. We have
several
> > > batch files (*.bat) that we use to copy drawing files and create job
> > > folders, now none of them work. Has anyone experienced this and any
> > > suggestions to correct?
> > >
> > >
> > > --
> > > Ted Evans
> > > CAD Manager
> > > Architecture & Engineering Services
> > > RadioShack Corporation
> > > 817-415-2034
> > >
> > >
> >
> >
>
>
Message 12 of 16
Anonymous
in reply to: Anonymous

I have posted two of the batch files and the shortcut incase there is a
problem with the .pif file to the customer-files newsgroup.
Thanks for your help.

"Jamie Duncan" wrote in message
news:F849C52DB0BB806740123D66DA740A87@in.WebX.maYIadrTaRb...
> Hey Ted - why not post 'em in cusfiles so we can have at em
>
> --
> Jamie Duncan
>
> "Maybe the Hokey Pokey is REALLY what's it all about"
> "Ted Evans" wrote in message
> news:DDFFE4AA9A793E880F652895B470743E@in.WebX.maYIadrTaRb...
> > Can you expand on this a little more. What types of "slight
modifications"
> > did you have to make? These are essential for our day to day operation,
I
> > will have to come up with some other method of performing the task these
> > batch file do if I can not get this resolved.
> > --
> > Ted Evans
> > CAD Manager
> > Architecture & Engineering Services
> > RadioShack Corporation
> > 817-415-2034
> >
> > "Peter Friedrich" wrote in message
> > news:34881480179D6EAF52C03F5D886467FE@in.WebX.maYIadrTaRb...
> > > The only problems I had was Syntax related--- placing file names in
> > quotes,
> > > etc.
> > > All my stuff works with slight modifications.
> > >
> > >
> > > "Ted Evans" wrote in message
> > > news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> > > > We have just upgraded to windows 2000 from windows 98. We have
> several
> > > > batch files (*.bat) that we use to copy drawing files and create job
> > > > folders, now none of them work. Has anyone experienced this and any
> > > > suggestions to correct?
> > > >
> > > >
> > > > --
> > > > Ted Evans
> > > > CAD Manager
> > > > Architecture & Engineering Services
> > > > RadioShack Corporation
> > > > 817-415-2034
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Message 13 of 16
Anonymous
in reply to: Anonymous

On Thu, 20 Feb 2003 14:38:13 -0800, "Jimmy B"
wrote:

>cmd is to be preffered since it uses cmd.exe that is Windows NT's shell and
>bat uses command.com that is the DOS shell.

Sorry, but this is not true.

Command.com is a 16-bit command processor, available in Windows NT+
strictly for compatibility with older programs.

Both bat and cmd files use the cmd.exe command processor, as dictated
by the COMSPEC environment variable. However, command.com only
recognized bat as a valid extension and will not run cmd files.

Matt
mstachoni@comcast.net
mstachoni@bhhtait.com
Message 14 of 16
Anonymous
in reply to: Anonymous

I haven't done batch files to such depth... looks OK (as far as I understand
it in DOS)

Suggestions:
Have you tried simplifying it...
remove Colors (sorry, I love colors, too) and other escape-character
dependent coding (for now).

Add "quotes" to any hard-coded file/path names

also:
if not exist %store%ME1.DWG ren XXXXME1.dwg %store%ME1.DWG
does %store% = %STORE% ? (setenv was named %STORE%)

As for what I changed... was a while back... simple syntax that I can't
recall now.
I found one old website during that era:
http://home7.inet.tele.dk/batfiles/main/tricktip.htm#top
-- has DOS instructions... was useful for me once, but still, it's NOT
Windows.

Hope that helps... will be looking for more info, too.


"Ted Evans" wrote in message
news:DDFFE4AA9A793E880F652895B470743E@in.WebX.maYIadrTaRb...
> Can you expand on this a little more. What types of "slight modifications"
> did you have to make? These are essential for our day to day operation, I
> will have to come up with some other method of performing the task these
> batch file do if I can not get this resolved.
> --
> Ted Evans
> CAD Manager
> Architecture & Engineering Services
> RadioShack Corporation
> 817-415-2034
>
> "Peter Friedrich" wrote in message
> news:34881480179D6EAF52C03F5D886467FE@in.WebX.maYIadrTaRb...
> > The only problems I had was Syntax related--- placing file names in
> quotes,
> > etc.
> > All my stuff works with slight modifications.
> >
> >
> > "Ted Evans" wrote in message
> > news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> > > We have just upgraded to windows 2000 from windows 98. We have
several
> > > batch files (*.bat) that we use to copy drawing files and create job
> > > folders, now none of them work. Has anyone experienced this and any
> > > suggestions to correct?
> > >
> > >
> > > --
> > > Ted Evans
> > > CAD Manager
> > > Architecture & Engineering Services
> > > RadioShack Corporation
> > > 817-415-2034
> > >
> > >
> >
> >
>
>
Message 15 of 16
Anonymous
in reply to: Anonymous

Hey Ted - I looked through them - and I was wondering if maybe there is
another way
Like the one that creates the project folders - why not just hav a dummy
folder set up with all of the subfolders properly named etc. The just copy
and paste the folder and rename the root with your project name/number?

I'm wondering if some of the others could be done using windows functions as
well?

Jamie
"Ted Evans" wrote in message
news:4D33851940B3EF1B50D1628FCB34CDCA@in.WebX.maYIadrTaRb...
> I have posted two of the batch files and the shortcut incase there is a
> problem with the .pif file to the customer-files newsgroup.
> Thanks for your help.
>
> "Jamie Duncan" wrote in message
> news:F849C52DB0BB806740123D66DA740A87@in.WebX.maYIadrTaRb...
> > Hey Ted - why not post 'em in cusfiles so we can have at em
> >
> > --
> > Jamie Duncan
> >
> > "Maybe the Hokey Pokey is REALLY what's it all about"
> > "Ted Evans" wrote in message
> > news:DDFFE4AA9A793E880F652895B470743E@in.WebX.maYIadrTaRb...
> > > Can you expand on this a little more. What types of "slight
> modifications"
> > > did you have to make? These are essential for our day to day
operation,
> I
> > > will have to come up with some other method of performing the task
these
> > > batch file do if I can not get this resolved.
> > > --
> > > Ted Evans
> > > CAD Manager
> > > Architecture & Engineering Services
> > > RadioShack Corporation
> > > 817-415-2034
> > >
> > > "Peter Friedrich" wrote in message
> > > news:34881480179D6EAF52C03F5D886467FE@in.WebX.maYIadrTaRb...
> > > > The only problems I had was Syntax related--- placing file names in
> > > quotes,
> > > > etc.
> > > > All my stuff works with slight modifications.
> > > >
> > > >
> > > > "Ted Evans" wrote in message
> > > > news:75742928EFDA8D03FD7082F95C74DF1E@in.WebX.maYIadrTaRb...
> > > > > We have just upgraded to windows 2000 from windows 98. We have
> > several
> > > > > batch files (*.bat) that we use to copy drawing files and create
job
> > > > > folders, now none of them work. Has anyone experienced this and
any
> > > > > suggestions to correct?
> > > > >
> > > > >
> > > > > --
> > > > > Ted Evans
> > > > > CAD Manager
> > > > > Architecture & Engineering Services
> > > > > RadioShack Corporation
> > > > > 817-415-2034
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Message 16 of 16
Anonymous
in reply to: Anonymous

Sorry about that. I must have remembered wrong since I've thought I run into
some situation a while ago that I run into cmd working better than bat and
when I checked the process the bat file used command.com but now when I
checked this was not the case.

/Jimmy

"Matt Stachoni" skrev i meddelandet
news:63ic5vkfv5hcr9i661fjtb3qosf6dmhp1q@4ax.com...
> On Thu, 20 Feb 2003 14:38:13 -0800, "Jimmy B"
> wrote:
>
> >cmd is to be preffered since it uses cmd.exe that is Windows NT's shell
and
> >bat uses command.com that is the DOS shell.
>
> Sorry, but this is not true.
>
> Command.com is a 16-bit command processor, available in Windows NT+
> strictly for compatibility with older programs.
>
> Both bat and cmd files use the cmd.exe command processor, as dictated
> by the COMSPEC environment variable. However, command.com only
> recognized bat as a valid extension and will not run cmd files.
>
> Matt
> mstachoni@comcast.net
> mstachoni@bhhtait.com
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report