I tried using batch files and autorun.inf, but it does not worked on win 7/8 pc, anyone plz help me? any software?
Windows 7 does not allow the use of autorun.inf files. It can cause virus files on a flash drive to automatically run and possibly sabotage the computer. Also, it doesn't seem like a good idea to create this type of file anyway. If incorrectly used it could steal important information from the user. So, it won't work on Windows 7 and is a bad idea for other systems.
Related
We have a bootable USB stick that works perfectly. It will boot, ask the user for some options, then write files to the hard drive accordingly. We did this by using rufus-2.1, throwing freedos into the USB stick, and basically hijacking autoexec.bat. Autoexec.bat now executes some separate .bat scripts based on user input.
The problem is, we now want to have an option to allow users to burn an iso to a cd or dvd. We've been trying to create an image of the USB stick and burn it to a DVD.
We found plenty of information on this subject, but nothing has worked. We started by extracting the bootimage from various bootable iso files using imgburn. None of these worked. We tried extracting the bootimage from our USB stick, and that also didn't work.
Next we tried WinImage. We extracted the boot information from boot98.exe, hijacked autoexec.exe, created a new image and injected the files. We saved the files as a bootimage and tried the above method again, which also didn't work.
Is there perhaps a more straightforward way to execute DOS .bat scripts through cd/dvd boot? We'd be open to something other than DOS as well, as long as it can write files to a hard drive based on user input through a simple boot interface.
Note: The computer itself does not contain an operating system.
Thanks.
We found a very slick setup that does what we need. Unfortunately, the CD-ROM drivers do not work properly on modern DVD drives. Using this method, it should be possible to put all the scripts directly in autoexec.bat and run commands directly on the "simulated" floppy drive. For whatever reason, we can boot from the "floppy" section of the CD-ROM, but it cannot copy files from A: to C:. I believe we are very close, but no cigar.
http://www.hiren.info/pages/bootablecd
First method that actually produced a bootable CD and allowed scripts to be run by a choice entered by the user.
For work I have to write a simple batch file to backup a directory as part of a maintenance routine. The PCs that need to have their directories backed up are running Windows XP Embedded 2002 SP2. These tools do not have the following command line utilities:
-copy
-xcopy.exe
-robocopy.exe
Is there any method of command line copy that is currently on XPe, if not, is there a 3rd party solution and how would I implement this?
Thank you in advance.
I'm not really sure why, if you can put new files on this machine running an embedded OS, why you wouldn't have just copied xcopy.exe over to it... Anyway, the program you want and is the best for copying large amounts of files/backups is XXCOPY. Check out www.xxcopy.com
Iam working on POS software using winforms. Iam trying to programmatically writing XML file (which contain some encrypted information about software serial number) to C:\Windows\System32 directory. But when i write i get an error Access denied.
Can anyone please explain how can i write this file with full permissions in this directory in windows 7 as well as in windows XP???
Any other suggestion or better way to do this will also be welcome.
Thanks in advance.
You'll need to be an administrator on the machine to write to the Windows directory. In addition, on Vista and later, your process will need to be "elevated" (otherwise known as Run As Administrator). You can configure this on your application's property sheet, as discussed here, or with a bit more work, do it programmatically.
It's bad practice to write to that directory, though, notwithstanding all the (misguided) software that does that. Save your files somewhere else. %appdata% or %localappdata% (directories specifically meant for application data) are good choices.
I want to get started with libspotify on my Win 7 machine but I dont have a clue on how to get it all setup so that I can even run the examples included in the pack. I have a Spotify Premium account and I have tried installing libspotify by copying libspotify.dll to c:\windows, c:\windows\system32 and to c:\windows\SysWOW64 and also changed the path variable to include the path where libspotify.dll is located but I still dont understand how to get the examples to work.
I have Code::Blocks installed but as soon as I try to import and run any of the .c files included in the /examples/ folder I get all kinds of error messages. The truth is that I am not even sure how to install libspotify and the documentation is absolutely non existent so for a beginner it is impossible to even have a chance at getting started.
Is there somebody out there who can do a simple walkthrough on how to install libspotify and get the examples up and running on a Win 7 (64-bit) machine?
The only thing I really want to do with libspotify is to be able to via a command prompt or something like that be able to queue a song in Spotify so I dont really care about the other parts. But I can probably solve that by myself as long as I can get an example up and running.
Sadly libspotify is not well-supported on Windows, in fact the example code won't even build because there is no Windows audio driver for them. Your best bet to just get up and running would be to use mingw, or linux in a VirtualBox environment.
I just got my son A used computer but their are over 28,000 files on it I would like to know if their is A list of file ext that I can delete safely.please help I have looked at other sites but they just give me the ones I already know about like .log,.tmp is their any more
If you're not 100% sure of the computer's history (and even if you are) I would strongly suggest formatting the disk and reinstalling Windows from scratch. A second-hand computer could have all sorts of malware you don't know about. And if there are any root-kits on-board you're not going to see them in file listings anyway.
Even without malware a cleanly installed system will generally run much better than one that's just had a bunch of crud removed.