Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Batch file] Replace line  (Read 790 times)

0 Members and 1 Guest are viewing this topic.

Jed

[Batch file] Replace line
« on: November 17, 2006, 09:49:48 am »
Basically I'm a lazy !@#$% so instead typing all the commands out to make a new java file, I just want to do one to get the base template going. I have this in the file so far:

copy c:\windows\system32\javatemp.java c:\java
ren c:\java\javatemp.java %1.java
open %1.java

In javatemp.java I have

public class $$ {
   public static void main(String[] args) {

   }
}


I want to replace $$ with %1 (command line parameter). Anyone happen to know if its doable in win xp?
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.054 seconds with 34 queries.

anything