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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute file at login from server

Status
Not open for further replies.

MNSVB

IS-IT--Management
Feb 24, 2005
9
0
0
US
From a local users browser address line I can type ...
\\ServerName\DirectoryName\cleanup.cmd and the program runs and does what I want it to do. I can't type that same line at the command line without it saying 'The network path was not found.'

Q: How do I get \\Server...\cleanup.cmd to work from the command line?

Thanks,

MNSVB
 
Are there any spaces in the path? if so try:

"\\serverxyz\someshare\some path\cleanup.cmd"

or if any of the paths have more than six characters try:

\\serverxyz\someshare\progra~1\common~1\cleanup.cmd


HTH - Stiddy
 
Stiddy - Yes there are spaces and I had already tried the technique that you suggested and that still did not work.

Thanks!

MNSVB
 
MNSVB -

You need to make sure that your 'servername' is accessible via DNS. Try to do a ping request --> ping servername
If you receive 'Unkown host', then your network can't resolve the name to an IP therefore try a ping request to the server's ip address. If you get a reply then use the IP in place of the sername. \\10.10.10.10\someshare\foo\bar.cmd


Rich Bateman
American Bank of Texas
select * from Life where Brain is not null

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top