PDA

View Full Version : C code linux to windows



deekayt
19th October 2006, 22:01
I have used some linux specific code in qt 3.3.4 (linux) and need to now port to qt4(windows)

Some c programmer can tell me how to use system command in windows.

i beleive chmod may not be required now in windows.
i was using the commands as below.Now of course i will use bat file instead of script files.

system ("chmod 777 /root/stego/data_cleantotext.sh") ;
system ( "/root/stego/data_cleantotext.sh ");

thanks in advance

wysota
19th October 2006, 23:17
How about using QFile::setPermission() and QProcess respectively?