Search found 6 matches

by drinovc.copy
07 Mar 2010 17:55
Forum: DOS Batch Forum
Topic: This doesn't work: CD folder & ECHO %CD%
Replies: 7
Views: 9203

Re: This doesn't work: CD folder & ECHO %CD%

Another problem. When i open a picture like picture.gif, the program freezes until i close the picture viewer. In linux you can get rid of this by adding & on the end ... but on windows... doesn't work.
by drinovc.copy
07 Mar 2010 16:43
Forum: DOS Batch Forum
Topic: This doesn't work: CD folder & ECHO %CD%
Replies: 7
Views: 9203

Re: This doesn't work: CD folder & ECHO %CD%

It works perfect. I have to call the same function in Delphi, but no problem. First to do it, second to echo new dir ;) Thanks! U really helped me a lot! :wink:
by drinovc.copy
07 Mar 2010 11:19
Forum: DOS Batch Forum
Topic: This doesn't work: CD folder & ECHO %CD%
Replies: 7
Views: 9203

Re: This doesn't work: CD folder & ECHO %CD%

I am not using two lines, because i call this command from Delphi.

Code: Select all

CreateProcess(nil, PChar('cmd.exe /C ' + cmdLine), nil, nil, True, 0, nil, PChar(WorkDir), SI, PI);


Is there no other way?
by drinovc.copy
07 Mar 2010 09:56
Forum: DOS Batch Forum
Topic: This doesn't work: CD folder & ECHO %CD%
Replies: 7
Views: 9203

This doesn't work: CD folder & ECHO %CD%

I am using this command: CD folder & ECHO %CD%
I need to do this in one line! But it doesn't work? Why not? How can i do this?

Output:
C:\>cd Folder & echo %CD%
C:\ <-THIS IS NOT OK FOR ME - it should be C:\Folder

C:\Folder>

Please help
by drinovc.copy
26 Feb 2010 11:13
Forum: DOS Batch Forum
Topic: Problem with saving JAVAC output to file
Replies: 1
Views: 3173

Re: Problem with saving JAVAC output to file

I found a solution!

Code: Select all

javac test.java 2> tempFile.txt
by drinovc.copy
26 Feb 2010 10:49
Forum: DOS Batch Forum
Topic: Problem with saving JAVAC output to file
Replies: 1
Views: 3173

Problem with saving JAVAC output to file

I want to save javac output to file, but the regular commmand doesn't work.

my code:

Code: Select all

javac test.java > tempFile.txt


Any ideas how to do this?

I am using Windows 7 64-bit OS.