Dinesh Santhalingam

Dinesh Santhalingam

  • NA
  • 737
  • 368.5k

How to write a batch file using Notepad?

Feb 20 2017 7:55 AM
 
  1. C:\>set CREO_HOME="C:\Program Files\PTC\Creo 2.0\Common Files\M100"    
  2. C:\>set JAVA_HOME=D:\dev-tools\jdk1.7.0_45_amd64    
  3. C:\>cd jlink-first-master    
  4. C:\jlink-first-master>%JAVA_HOME%\bin\javac  cp %CREO_HOME%\text\java\pfc.jar      src\jlink\Launcher.java -d dist    
  5. cd C:\jlink-first-master\dist    
  6. C:\jlink-first-master\dist> %CREO_HOME%\..\..\Parametric\bin\parametric.bat   
I am using cmd to run above comments.I want to create a batch file .I did something but it can't solve my issue.
  1. @echo off  
  2. SET CCREO_HOME=C:\Program Files\PTC\Creo 2.0\Common Files\M100
  3. SET JAVA_HOME=D:\dev-tools\jdk1.7.0_45_amd64  
  4. SET PATH=C:\jlink-first-master  
  5. SET OPATH=%OPATH%;%CREO_HOME%;%CREO_HOME%;%PATH%;  
  6. SET "%JAVA_HOME%\bin\javac -cp %CREO_HOME%\text\java\pfc.jar src\jlink\Launcher.java -d dist"  
  7. call %CREO_HOME%\..\..\Parametric\bin\parametric.bat  
  8. pause  
Please help me to solve my issue?

Answers (10)