Thread Wallpaper Wechsel (24 answers)
Opened by jeans at 2009-08-09 17:23

jeans
 2009-08-09 17:23
#124009 #124009
User since
2009-08-09
6 Artikel
BenutzerIn
[default_avatar]
Hi,

Ich bin gerade dabei ein Programm zu coden, das mein Wallpaer bei jeden Neustart wechselt. Nur leider haut das nicht so hin wie ich will :-(

Das hier ist mein Code:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl

use strict;
use warnings;
use File::Copy;

my $base_dir = "C:\Dokumente und Einstellungen\Ricco\Lokale Einstellungen\Anwendungsdaten\Microsoft\Wallpaper\Wallpaper1.jpg";
my $save_dir = "C:\Dokumente und Einstellungen\Ricco\Lokale Einstellungen\Anwendungsdaten\Microsoft\Wallpaper1.bmp";

opendir (BASE, $base_dir) || die "Kann Verz. nicht lesen:";
my @dir = grep { $_ !~ /^..?$/ && -f "$base_dir/$_" } readdir(BASE);
closedir (BASE);
foreach my $file (@dir){
copy("$base_dir/$file", "$save_dir/$file");

}


und das ist die Fehlermeldung:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Dokumente und Einstellungen\Ricco>wallpaer.pl
Der Befehl "wallpaer.pl" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Dokumente und Einstellungen\Ricco>wallpaper.pl
Unrecognized escape \D passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 7.
Unrecognized escape \R passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 7.
Unrecognized escape \A passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 7.
Unrecognized escape \M passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 7.
Unrecognized escape \W passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 7.
Unrecognized escape \W passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 7.
Unrecognized escape \D passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 8.
Unrecognized escape \R passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 8.
Unrecognized escape \A passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 8.
Unrecognized escape \M passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 8.
Unrecognized escape \W passed through at C:\Dokumente und Einstellungen\Ricco\wa
llpaper.pl line 8.
Kann Verz. nicht lesen: at C:\Dokumente und Einstellungen\Ricco\wallpaper.pl lin
e 10.

C:\Dokumente und Einstellungen\Ricco>


Was stimmt mit der Zeile 7 und 8 nicht?

Wäre nett von euch, wenn mir jemmand helfen könnte ;-)

Beachtet bitte, das ich Anfänger bin.

View full thread Wallpaper Wechsel