Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Text File

Status
Not open for further replies.

rhnewfie

Programmer
Jun 14, 2001
267
CA
Is there a way that I can use SMS to simply copy a text file from the server to the client once per day? Do I have to go through the package creation for this?
 
the working directory on the log file seems to be the problem (WorkingDirectory = "C:\\";) take a \ off it.

 
Yeah, I saw that and removed the working dir entirely. From examples that I have seen it does not seem to be necessary.
 
or even make this blank

WorkingDirectory = "";

I think you can remove the c:\ from the Package Program "START IN" dialog box.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
Yes, that is what I did.

In that troubleshooting doc it appears that they mapped a drive from the workstation to the SMS Server package dir. Should this be done?
 
Don't know what you mean...can you give me more information or paste information so I know what you are talking about....

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
Sure

Ah ha! Application2003.exe isn’t present, Application2003.2.exe is! The less illustrated version:



C:\Documents and Settings\richardt>net use * \\SMSSERVER\smspkge$

Drive Z: is now connected to \\SMSSERVER\smspkge$.



The command completed successfully.





C:\Documents and Settings\richardt>z:



Z:\>cd ABC00005



Z:\ABC00005>dir

Volume in drive Z is SMS

Volume Serial Number is A895-F8E8

That is almost at the end of the doc.
 
What is the question? "In that troubleshooting doc it appears that they mapped a drive from the workstation to the SMS Server package dir" Yes, they did this in the troubleshooting document to troubleshoot a problem. By connecting to the SMS package directory, they discovered that the EXE targeted in the SMS package was mistyped.

There is no reason to map the drive unless you are troubleshooting a problem.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
That answers my question :)

Thanks for all the help folks. I really appreciate it!
 
More detailed log lines to see if it means anything to someone!!

<![LOG[Mandatory execution requested for program LogInstall and advertisement ADM20002]LOG]!><time="11:06:00.155+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="execreqmgr.cpp:2761">
<![LOG[Creating mandatory request for advert ADM20002, program LogInstall, package ADM00003]LOG]!><time="11:06:00.155+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="execreqmgr.cpp:2858">
<![LOG[Executing program LogInstall.EXE in Admin context]LOG]!><time="11:06:00.225+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="executionrequest.cpp:2375">
<![LOG[Execution Request for program LogInstall state change from NotExist to Running]LOG]!><time="11:06:00.225+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="executionrequest.cpp:372">
<![LOG[Executing program as a script]LOG]!><time="11:06:00.275+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="executionengine.cpp:96">
<![LOG[Invalid executable file LogInstall.EXE]LOG]!><time="11:06:00.275+300" date="06-02-2005" component="execmgr" context="" type="3" thread="876" file="scriptexecution.cpp:318">
<![LOG[Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramBadEnvironmentEvent
{
AdvertisementId = "ADM20002";
ClientID = "GUID:C2DBF323-6566-4874-AAF3-C376AE398147";
CommandLine = "LogInstall.EXE";
DateTime = "20050602160600.295000+000";
DriveLetter = "";
MachineName = "xxxxx";
PackageName = "ADM00003";
ProcessID = 1444;
ProgramName = "LogInstall";
SiteCode = "ADM";
ThreadID = 876;
Win32ErrorCode = 2147942402;
WorkingDirectory = "";
};
]LOG]!><time="11:06:00.315+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="event.cpp:522">
<![LOG[Raised Program Bad Environment Event for Ad:ADM20002, Package:ADM00003, Program: LogInstall]LOG]!><time="11:06:00.315+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="executioncontext.cpp:593">
<![LOG[EnterRsRuningState failed to run script LogInstall.EXE 0x80009106]LOG]!><time="11:06:00.325+300" date="06-02-2005" component="execmgr" context="" type="2" thread="876" file="executionrequest.cpp:2407">
<![LOG[Fatal error 0x80009106 enountered for program LogInstall. This program will not retry.]LOG]!><time="11:06:00.335+300" date="06-02-2005" component="execmgr" context="" type="1" thread="876" file="executionrequest.cpp:2551">
<![LOG[CreateMandatoryRequestRecursively LogInstall failed at EvaluateRequestForExecution]LOG]!><time="11:06:00.355+300" date="06-02-2005" component="execmgr" context="" type="2" thread="876" file="execreqmgr.cpp:3068">
 
Do I have to put my packages in a specific dir or does the one that I browse to when I create my package suffice? Package in SMS that is.
 
Do I have to put my packages in a specific dir or does the one that I browse to when I create my package suffice? "

the one you browse to when you create the package is good.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please contact (Sales@njcomputernetworks.com)
 
Could there be some problem between the server and the client? Should I maybe uninstall the client and then push out the client install again?
 
Is there a reason why I cannot find a folder/share called smspkg"drive letter"$ on my sms server?
 
Its not a share ;)

look directly on a array such as \\smserver\d$ it will be on the largest empty drive, and possibly on multiple drives of the server

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top