Promocja językowa LINGO

Pytanie

Wszystkie informacje związane z Kurs C++ - POZIOM 4

Moderator: Moderatorzy

Postprzez fornal96 Wt gru 18, 2007 23:44 pm

dzięki a wiesz może jak kazać programowi stworzyć plik w konkretnym miejscu na dysku zamiast w bieżącym katalogu??
fornal96
obserwator
obserwator
 
Posty: 19
Dołączył(a): Wt paź 30, 2007 21:05 pm

Postprzez jermey Śr gru 19, 2007 16:55 pm

po prostu dajesz sciezke docelowa do pliku:
Kod: Zaznacz cały
"C:\\WINDOWS\\system32\\cmd.exe"

pamietaj tylko zeby uzywac podwojnych slashy zamiast pojedynczego.
>:3 JHB i takie tam...
jermey
początkujący
początkujący
 
Posty: 111
Dołączył(a): Pn lut 12, 2007 23:26 pm
Lokalizacja: Warszawa/Ostrowiec Sw

Postprzez fornal96 Pt gru 21, 2007 17:39 pm

dzięki ty jesteś jedyną osobą która się interesuje tutaj :)
sorki że zmienię temat ale czy ktoś może mnie oświecić co zrobić żeby skrypty zadziałały? Mają one na celu wysłanie wiadomości e-mail z załącznikiem. Poniżej daje ich kody:

ic.vbs
Kod: Zaznacz cały
Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM


Set objMessage = CreateObject("CDO.Message")
objMessage.From = """Komputer"" <fornal96@o2.pl>"

objMessage.To = "duch96@interia.pl"
objMessage.TextBody = "Witaj administratorze" & vbCRLF & "Oto twoj zalacznik ;)"
objMessage.AddAttachment "D:\Windows\Vsetup\config.xyz"

'==This section provides the configuration information for the remote SMTP server.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "poczta.o2.pl"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "LOGIN"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "HASŁO"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send


setup.vbs
Kod: Zaznacz cały
Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM


Set objMessage = CreateObject("CDO.Message")
objMessage.From = """Komputer"" <fornal96@o2.pl>"

objMessage.To = "duch96@interia.pl"
objMessage.TextBody = "Witaj administratorze" & vbCRLF & "Oto twoj zalacznik ;)"
objMessage.AddAttachment "D:\Windows\Vsetup\config.xyz"

'==This section provides the configuration information for the remote SMTP server.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "poczta.o2.pl"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "LOGIN"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "HASŁO"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send


bądź jeśli to jest możliwe jak napisać program w c++ który wysyła e-mail z załącznikiem na konkretny adres
fornal96
obserwator
obserwator
 
Posty: 19
Dołączył(a): Wt paź 30, 2007 21:05 pm

Poprzednia strona

Powrót do KURS C++ POZIOM 4

Kto przegląda forum

Użytkownicy przeglądający to forum: Brak zalogowanych użytkowników i 0 gości

cron
ręceprecz odtybetu | Programista PHP | Pozycjonowanie www | Seo link directory | Pozycjonowanie Częstochowa | wizy do rosji | wizy do uzbekistanu