Programming :: How Come Windows .exe Files Can Not Be Run?

Mar 31, 2011

I have been doing some work with assembly and low level stuff like that and had some questions. When programs are compiled they are converted into machine language. The problem is that all of the books I read assumes the user uses Linux. How come windows .exe files can not be run in Linux? I under stand there are some proprietary software that might be required like directx but I'm not talking about that. How come the same C program compiled in a Linux environment and a windows environment cant be interchanged? What is physically different about compiling a program in windows and Linux? Is one way better then the other or are they just different ways to reach the same place? I haven't done any work with apple computers but I assume that its similar to Linux.

I have been looking around the internet and the best answer I have been able to get so far is "because that's how it is" and "because windows uses file extensions". If somebody were able to give me the facts or point me to a website that does I would be very happy.

View 3 Replies


ADVERTISEMENT

Programming :: Script To Pull Files From Windows?

Jul 2, 2010

I have a script in Linux that generates a report on my Linux machine. I would like to know if there is anyway I can write a script to pull this report automatically from my Linux machine into my windows machine. Both Linux and Windows machines are on the same network

View 1 Replies View Related

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related

Programming :: Sort Files In Directories Based On Files Date

Sep 8, 2009

I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'

View 5 Replies View Related

Ubuntu :: Put My Windows Files On E Drive Without Going Through The Hassle Of Reinstalling Windows?

Jan 23, 2010

I currently dual boot windows XP Pro with Ubuntu 9.10. I made a mistake last night playing with gparted and lost my E drive, which had all of my music, games and movies plus is where my Ubuntu install was. I then ended up reformatting the drive with windows and reinstalling Ubuntu 9.10.My question is how can I put my windows files on my E drive without going through the hassle of reinstalling windows.

I have a 20g IDE drive where my windows install is, windows and Ubuntu both tell me this drive is failing, (I have used it for booting since 2002, so I am not that concerned with it), another 40g IDE drive for more storage and a 160g SATA drive where Ubuntu is again installed. I want the SATA drive to be my main boot drive now, so how can I clone my windows boot to the other drive. I tried gparted but could not figure it out. I have gparted burnt to cd, booted with it and just don't understand how to use it.Also, if I clone this boot drive to the SATA drive, do I need to change jumper settings on my 40g to master when I take out the 20g drive.20g master and 40g slave on first IDE channel and 2 CD devices on second IDE channel and SATA drive on first SATA connection. I read somewhere that it is better to keep the cd devices on another channel than the disk drives.

View 1 Replies View Related

General :: Access Files From Windows NT Files To The Box - RHEL5

Apr 1, 2009

how to access files from windows NT files to the linux box (RHEL5)

View 2 Replies View Related

Programming :: Convert RTF Files To MS Word Files Using Java?

Sep 19, 2010

In my application I came across a new requirement where I have to convert RTF files to Word and PDF formatted files. I am searching for an API using which my java application can able to convert the above specified formats.

View 4 Replies View Related

Ubuntu :: Backed Up Windows Files Using Live CD - Windows Can't See Them

Dec 1, 2010

They have pictures and documents everywhere so I figured I would just backup their entire HDD onto my external one and let them go in and transfer them back off. I keep proper backups so this isn't how I normally do things. I have done similar things in the past with dieing HDD's and Knoppix but I have never had this issue. I burned a CD using the latest ISO and Ubuntu seen both the main HDD and my external. I just copied all the contents of the main HDD over to the external. All went well and I could browse and view all the files from the external HDD after the transfer using the live CD. Unfortunately I am having an issue seeing the external HDD in Windows. As soon as I hook the drive up - windows says I need to Format it(Which I won't do obviously). But if I boot the live CD I can still see and use the files. How do can I get windows to see the drive and files without destroying data?

View 9 Replies View Related

Programming :: Bash Programming - Rename Files In A Loop?

Mar 31, 2011

I need to rename the resulted searched files from a loopI have the following code:

find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done

basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell

View 10 Replies View Related

Ubuntu :: Possible To Run Exe Files On System , Windows Files?

Dec 31, 2008

Is it possible to run exe files on linux, windows files

View 4 Replies View Related

Programming :: C Header Files And Object Files ?

Sep 18, 2010

When is it good to use separate translation units and object files and link them into the main C program, and when is it good to include the header files in the main C program? I don't understand if most people include header files or if most people just link in object files and use their contents in the main program. It's sort of a simple question, but it's confusing to me and that's why I need help with it. I sort of don't understand the difference, or if there's really no difference other than the way the final result is achieved, which way is better or preferred, etc...

For example:

Code:

or:

Code:

Simple explanation of the difference? or which one is preferred or better? I've read a little on the ELF format... so is there no difference in the end result? It's just a matter of preference or necessity, and where the information is to begin with?

View 9 Replies View Related

Programming :: Create Inverted Files To Associate Files To Numbers ( Numbers Being The Index Of My Paths )?

Apr 4, 2011

am writing a small search program for my class. I have decided to use indexing for my program. Ive researched online about indexing and how search engines do it. If im gonno do that I need to create inverted files to associate files to numbers ( numbers being the index of my paths ) . Now I was wondering what would be the best way to create an inverted file ? I was going to create sql tables using mysql api in C but then again there is no array data type or vectors to store few numbers in a single column in mysql and it is not advised to use Enum or SET

View 14 Replies View Related

Ubuntu Installation :: Resizing Windows Partition - Install Files On A Non Windows NTFS Partition

Jul 22, 2010

Now however its not letting me resize the Windows partition, mounted or unmounted. It currently occupies the whole disk. I would rather not reinstall the whole thing over again, but I will if I have to. Isnt there an easy way to shrink a Windows partition? I swear Ive done this before and it wasnt this hard. Could it be a problem with the Mint installer that now asks me if I want to unmount my disks before it goes into install mode? On this PC I would like to have

Windows XP
Mint
Ubuntu-Studio
Edubuntu
One of the E17 OSs
Puppy Linux (to create a remix)

I am probably going to put most of the linux partitions on the second laptop drive but I want to install files on a non WIndows NTFS partition.

View 6 Replies View Related

Ubuntu :: Finding Windows Partition - Use FAT32 Partition For Photo Images And Old Windows Files

May 31, 2011

I got tired of dual booting on my old computer so on the new computer I am planning to run XP on VMware Player. The problem is that on the new computer neither Ubuntu or XP can "see" the FAT32 partition. I intend to use the FAT32 partition for photo images and old Windows files and need access from both Ubintu and XP.

Partition table entries are not in disk order.

View 5 Replies View Related

Programming :: Search The String "Listen" In A Few Files (config Files)?

May 9, 2011

I'm trying to search the string "Listen" in a few files (config files). I madefind /apps/apache* -exec grep -H Listen {} ;but the result list is very long. How i make a "grep -v" whith this command?

View 3 Replies View Related

Ubuntu :: Can't Access Or Even Find Files On Windows Partition Or Windows Partition Itself

Sep 24, 2010

After several times install & reinstall,i got a stable dual boot vista / ubuntu 10.10.,but i can't access or even see my windows partition from ubuntu,i installed my dual boot with wubu this time,in previous installation when i didn't use wubi , i didn't have such a problem & windows partition with all my files in it (windows files,media ,etc,) was easily accessible from "places" on ubuntu . I already disabled windows firewall & other security options but nothing changed

View 3 Replies View Related

Programming :: Deleted Files In Directory With So Many Files Without Deleting Directory Itself

Nov 14, 2010

There are millions of files in many directories. Wherenver i try rm * or find or use xargs, they say 'argument list too long' and exit. How can i deleted files in a directory with so many files without deleting the directory itself.

View 3 Replies View Related

Ubuntu :: Cant See Files In Windows?

Feb 17, 2011

I copied some large files onto a fat32 usb key in windows, once in ubuntu i then moved these files into some other folders on the usb key. Now when I look at the usb key on windows again, the folder i created and moved them to exists, but it is empty!?The odd thing is, the key reports that 6.5gb of the usb key is in use, but windows is only finding about 1-2gb of the files.

View 2 Replies View Related

Ubuntu :: Trying To Get To Files In Windows 7?

Jul 9, 2011

figured I'd give Linux a try again so I decided to install Ubuntu 11.04 with the windows installer.. All have gone well and everything seems to be working ok.. I just have files on the Windows 7 side of the computer and I cant seem to figure out how to get to them.

View 1 Replies View Related

Ubuntu :: Any Way To Run Windows EXE Files

May 2, 2009

I have a set of seven CDs with a video course on them but each CD is run via a Windows .exe file. How can I run a .exe file? Apparently this .exe file kicks off the course somehow. I'm actually surprised it's not a .avi file or some other kind of video file but such is life.

View 3 Replies View Related

Ubuntu :: Using Windows Files In Other OS?

Jan 12, 2011

I've been recently debating on whether to install Linux on my laptop or not, but one of my main problems is whether I will be able to use the files I have on my Windows side or not. Obviously I'm not talking about .docx or other such Windows-specific files, but things like MP3s or AVIs.

I've seen a couple posts around the Internet mentioning a couple ways on how to access files, but nothing about long-term use without having to move things over with an external hard drive or such.

View 3 Replies View Related

Programming :: Comparing Two Files ?

May 7, 2011

I have two files

Code:

we have to consider here $5 , $6 , $7 for our search

file2.txt

Code:

Here we should take only $2 for comparison. As you can most of the $2 field records has value and some do not have value.

Question:I want to take the fields $5 , $6 , $7 from file 1 and compare it with $2 field from file 2. and the rsult should be like this:

Code:

The final output will look like this

Actual file1.txt (before running the code)

Code:

FIle1.txt after running the above said condition

Code:

So the field $5 , $6 , $7 should get replaced from the matched valued of $1(file1)

View 3 Replies View Related

Programming :: C++: Not #including Files?

Jun 16, 2010

I'm trying to make my program as small as possible. Currently it's down to 17.8 KB, but I'd like to get it smaller (I know, I'm insane). Is there a way to not use the "#include" directive to include the entire header, but rather to just load only the stuff I need? For example, I just want to include 'sprintf' and 'printf' from stdio.h, not the entire header. Is this possible? Or am I misunderstanding some fundamental element here?

View 14 Replies View Related

Programming :: How To Organise Different Files

Sep 30, 2010

organise different files into one by using linux programming?what is the use of gcc wat is its abbrevation?

View 2 Replies View Related

Programming :: See The Contain Of Binary Files?

Aug 4, 2010

i have some files name libbeet.so.3.02 , libpos.so.3.04.I think all is binary files , but i am not able to see the contain of file.is there any script to read the file contain.

View 5 Replies View Related

Programming :: Copy Big Files Using Tar?

Sep 13, 2010

I am trying to copy content of single folder to multiple destination simultaneously using tar and FIFO. here is the source code

mkfifo bin1.fifo
tar -C bin -cf - . | tee bin1.fifo | tar -C bin2 -xf - &
tar -C bin1 -xf bin1.fifo

[code]....

View 1 Replies View Related

Programming :: Where To Put Headers And Cpp Files

Mar 14, 2010

I have several classes that I use for multiple programs. Where should I keep the h/cpp files so I only have to add the #include for the compiler to find them?

View 9 Replies View Related

General :: Access Windows Log Files?

Aug 11, 2010

I'm trying to remotely access windows log files from linux. So far I've found two different approaches.

Install syslog server on windows machine and let windows send log files to linux, read those files Remotely access log files with wmi implementation for linux.

Does anyone know about limitations for those two approaches before I dive into implementation?

View 2 Replies View Related

Ubuntu :: Recover Files From Windows?

Jun 10, 2010

Mi friend's PC is messed up and her windows doesn't boot anymore. She doesn't have any other OS on the PC.SO I thought I could recover her HD files using Ubuntu wth live cd. I put the CD in and I tried but I can't mount the HD because it says "NTFS is marked to be in use".How can I force the mount? Can I do it even if it's from an Ubuntu live CD?

View 1 Replies View Related

Ubuntu :: Can't Find Files Used On Windows

Sep 17, 2010

My husband partictioned our hard drive Ubuntu/Windows. I use Itunes and Lime Wire a lot. When I am using Ubuntu I cant find the files we used on windows. Can anyone tell me how to access these music and pic files so I can view them and listen to them while on Ubuntu?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved