.bat file

Thread Solved

Join Date: Jun 2006
Posts: 1,171
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

.bat file

 
0
  #1
Nov 15th, 2007
Hey everyone... could someone tell me why this isn't working? I get "The specified path could not be found." when I run it.

@echo off
REM###########################################################################

REM Author: Caleb
REM Date: 11-14-2007
REM Contact: -

REM Description: This .bat file is to copy necessary .cui, .mnl, and .mnr files from Autodesk 2007 to the REM @REM   Autodesk 2008 support folder

REM############################################################################

echo Copying Autodesk 2007 .cui files to Autodesk 2008 Support directory...
copy "C:\Documents and Settings\%USERNAME%\Application Data\Autodesk\C3D 2007\enu\Support\*.cui" "C:\Documents and Settings\%USERNAME\Application Data\Autodesk\C3D 2008\enu\Support"
pause

echo Copying Autodesk 2007 .mnl files to Autodesk 2008 Support directory...
copy "C:\Documents and Settings\%USERNAME%\Application Data\Autodesk\C3D 2007\enu\Support\*.mnl" "C:\Documents and Settings\%USERNAME%\Application Data\Autodesk\C3D 2008\enu\Support"
pause

echo Copying Autodesk 2007 .mnr files to Autodesk 2008 Support directory...
copy "C:\Documents and Settings\%USERNAME%\Application Data\Autodesk\C3D 2007\enu\Support\*.mnr" "C:\Documents and Settings\%USERNAME%\Application Data\Autodesk\C3D 2008\enu\Support"
pause
Last edited by Duki; Nov 15th, 2007 at 3:59 pm.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 1,729
Reputation: Suspishio is an unknown quantity at this point 
Solved Threads: 138
Sponsor
Suspishio's Avatar
Suspishio Suspishio is offline Offline
Simples!

Re: .bat file

 
0
  #2
Nov 15th, 2007
From what I can see:

1/
remove the double quote marks

2/
For %USERNAME% substitute the actual name in the path and make sure the destination directory (with the same substitution) is present.
Suspishio
My advice is at your risk
Qosmio G50-10H; T9400 2.53GHz Core 2 Duo; 4GB RAM; Vista HP (32)
nForce 680i LT; Q6600 Quad Core 2.4GHz; 8GB RAM; XP Pro (64)
Dell XPS M1710; T7200 2GHz Core 2 Duo; 2GB RAM; XP Pro (32)
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,171
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: .bat file

 
0
  #3
Nov 15th, 2007
Hm, the double quotes are needed because the path has spaces. The directory is there; it works with the username.

thanks.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,171
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: .bat file

 
0
  #4
Nov 16th, 2007
fixed it. Since it's a domain computer I needed to do %username%.domain

thanks for trying to help!
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Windows NT / 2000 / XP Forum


Views: 1263 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Windows NT / 2000 / XP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC