File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unix/windows - sh/bat file problem

 
kayanaat sidiqui
Ranch Hand
Posts: 122
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using batch this batch file-




Also this sh file-



Both of these files were working fine until i introduced "CONFIG_ROOT".

if i am putting in batch file this way it's doing fine--
-DConfigRoot="c:/settings" -

Can you please tell me what i am missing?

Thanks,
Kaya.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The '$' dereferences environment variables in Unix shells. The leading and trailing '%' dereferences the same in Windows. You have it right with every other variable in your script.
 
kayanaat sidiqui
Ranch Hand
Posts: 122
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Jo, Its working fine.

Thanks for your reply.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic