|
Hi guys wondering if anyone can help me on this one...
Basically i want to write a sync program for my creative zen mp3 player which is based on directory name rather than song name. Simply put it's gonna loop through the mp3 directory on my PC, compare it to the directories on my player and copy across any new stuff.
I can currently auto sync using media player, but this does it based on song name which takes an age as there's 11,000+ songs! By doing this based on directories i should be able to reduce the comparison to a mere 1,500 or so and ultimately speed up this timely process! (I appreciate this wont be a true auto-sync, but it'll be good enough for me)
The problem is is that my pc shows the mp3 player as a "Windows Portable Device" and hence doesnt have a drive letter (despite the fact i can browse the media files on the Zen (the path in explorer is just "My Computer\Creative Zen"))
Anyone know of a way i can get access to my player through code? Purhaps there's a management object search similar to 'Win32_LogicalDisk' but for media players?
Thanks in advance!
|
|
|
|
|
You can use WMDM[^] to access the device.
|
|
|
|
|
i am using windows XP OS and i have created a windows service which runs a piece of code every minute.
now i have changed the password programmatically for the service. for this i used the ChangeServiceConfig win32 api function. now the problem is that the service does not start giving a logon failure error even i am logged as administrator. but if we manually changed the password in the service control panel it works.
can any body help why the ChangeServiceConfig function does not set the password although the function executes successfully.
thanks
Pras
|
|
|
|
|
It sounds like your changing the password the service uses to login to the system. The service needs a username as password of an account to use, just like any person logging in at the keyboard. If the username and password you give it doesn't match an account on the system, the service will fail like you've described.
If you change the password the service uses, you also have to change the password on the account in the Users and Passwords control panel applet, or in the Management Console - Users and Groups (right-click My Computer, then click Manage).
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, need help, suppose a windows service is running with some user login/password...
now suppose the user's password expires...
will the service keep running? or will it stop as soon as the password expires?
|
|
|
|
|
Stop cross-posting in all the forums!! It's very rude and if multiple people respond, there won't be any colaboration between the people answering you.
Post your question in the C++ forum and be patient! Also, you might want to ask a more specific question. Just asking "can someone help me?" will proabably get you ignored.
Keep in mind that the CodeProject primary supports development on the Windows platforms, not Unix. So if you get any Visual C++ specific answers, you'll have to do some work to convert it to whatever you're using.
On top of all that, Googling for "C++ blowfish algorithm" came up with over half a million hits, so you might want to check some of those first.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How can I get the the group(s) that the current user(the user account the applications is running on) is in? I can get the privileges, but i need the group(s). Thanks for any help.
-yeti
|
|
|
|
|
Control Panel -> Administrative Tools -> Computer Management
Then select Local Users and Groups.
Don't forget you will need administrative privileges here.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Programmatically. I need to do it in the application.
|
|
|
|
|
|
I'll take a look, thanks.
|
|
|
|
|
how can we guess what language you're programming with ?
|
|
|
|
|
Sorry. I'm using C++. I'd like it to work in winxp and win2k.
|
|
|
|
|
EpicYeti wrote: Sorry. I'm using C++. I'd like it to work in winxp and win2k.
then i think you can ask the Visual C++ forum... you'll probably get much more valuable answers
|
|
|
|
|
hi guys,
execuse me if this is not the appropriate discussion board to ask such a question
I want to make a power point presentaion the loops over and over again until some one hits esc.
Any ideas....
Thanks in advance
|
|
|
|
|
samerh wrote: Any ideas....
How about using the help file that comes as part of the installation. You will find it rather helpful if you ask it the right question.
To give you a hint, for XP version, fire up Powerpoint and see what the "Slide Show -> Set Up Show" menuitem does.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
hope it helps u
1)prepare the slide show....
2) go to "SLIDE SHOW" menu
3) click " reherse show timings " ...
4) decide the display timing of each slide on screen manually...
5) press ok on msg box...
6) save as presentation show....
7) run the show..... wait for the timings to take effect....
Ish Kumar Kapila
|
|
|
|
|
hi all,
i've just installed fedora core on my other pc. i've got a shell script i want to be executed when a specific user logs in. i need to be able to see the konsole/output. i've tried many different things but can't figure out how to do this. if i try to execute it via the .bash_profile file, the system logs in then just waits, because the script loops, and never ends. i can't see the output either.
does anyone know how i can accomplish this?
thanks in advance,
sam
|
|
|
|
|
i've found a way to do this, in /home/user/.bash_profile i added:
konsole -e /home/admin/path/to/my/script &
|
|
|
|
|
Actually, all you really should have needed to do was run the script in the background (ie ~admin/path/to/my/script &).
Yet, you'll probably find that if you were to try to run any binaries (or scripts) which read from/write to a terminal (like one of the /dev/tty* devices) or pseudo-terminal (like one of the /dev/pts/* devices) via that script, then those binaries will probably behave a little differently than you might expect. In that case, you have a couple options: force the binaries in question to run interactively, handle the respective SIGTTIN and/or SIGTTOU signals for those binaries.
|
|
|
|
|
Hi
I have a bat file that creates an ftp script in a temp file then executes it. An example command may be
echo put somefile.txt>>script.txt
However it would be useful if i could log the result of the command to determine its outcome. I considered doing this using redirection so log the commands output to another file but am not sure how to do this. Any help would be greatly appreciated.
Sorry if this is the wrong forum but it seemed more suited.
ps both boxes will be on xp
Dan
|
|
|
|
|
hi,
you need 2 bat files.
with the 1. bat-file you create the bat-file with the ftp-commands
as you described.
with the 2. bat-file you start the bat-file with the ftp-commands.
#sample 2.bat-file:
ftp-file.cmd > ftp.log
exit
if you use >> ftp.log, the output appends to the log file.
bru4you
|
|
|
|
|
how to insert data through the form created through unix(shell scripting)
Piyanka
|
|
|
|
|
You want to know how to insert data that has been entered in a form, which in turn was created by a shell script?
Thats nice. But WHERE do you want to insert the data? In a file? In a database? In a vending machine?
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
thanks for responding
INSERT INTO DATABASE......
priyanka
|
|
|
|