The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



Thread: batch file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-09-2005
ramneek ramneek is offline
Registered User
 

Join Date: Aug 2005
Posts: 30
again batch file

i have use system but i am unable to pass the varable to it
how can i do this

eg

system("c:\text.bat c:\textfile.txt");

this code is working but when what shaLL I do in this case

char ch[20]="textfile.txt"
system("C:\text.bat c:\ch);

i know this is error how to correect it
i dont to be specific with the name of the text file
i want to use i as a variable
Reply With Quote