Re: Long file name problem



Jerold Schulman wrote:
On Tue, 29 Mar 2005 09:32:29 -0600, Jason Fischer <jfischer@xxxxxxxxxx> wrote:


Hello,

Please let me know if I'm posting this in the wrong group.

We have a Win2k SP4 w/ latest patches running SQL 8.0, McAfee 8.0i and Back-up Exec. 9.1. NTFS file system.

We cannot execute programs with long file names unless we wrap them in quotes. For example:

C:\Program Files\test\hi.bat won't work, but:

"C:\Program Files\test\hi.bat" will.

This is starting to cause some problem with programs on the system, as they don't wrap their commands in quotes by default. I'm not sure if the system was always set-up like this, as it's one that I inherited. We have other servers that are nearly identical that don't seem to have this problem.

Any ideas?

If you need me to post more info, please let me know.

Thanks!

Jason


File Names with space, regardless of length, must be encapsulated in double-quotes.
There is no way to change this.


Jerold Schulman

I'm sorry, you're right. I'm just misunderstanding the problem.

The problem now seems to be that these quotes aren't being inserted on this server for some reason. For example, we recently installed McAfee VirusScan 8.0i. During the install it would fail and say the services couldn't be started. I had to go into the registry and put quotes around the path to the executable.

I had to do the same thing when install Back-up Exec. Is there a setting somewhere that may have been turned off?

Jason
.



Relevant Pages

  • Re: Windows 2000 and XP and exec and double quotes
    ... arguments to exec. ... exec wish test1.tcl $cmd ... > quotes and escaping quotes in parameters with backslashes is a method ...
    (comp.lang.tcl)
  • Re: Deleting corrupted files with special characters in their file names
    ... Jerold Schulman wrote: ... > encapsulate the path in quotes. ... that looks similar to what I did before but it's not woking here. ...
    (microsoft.public.win2000.general)
  • Re: Windows 2000 and XP and exec and double quotes
    ... On the Tcl level the literal constants ... These two are indeed where you hit the problem in Windows [exec]. ... Note that, as I said before, quotes can not occur in Windows filenames ... Does ntbackup explicitly want quotes? ...
    (comp.lang.tcl)
  • Re: SQL password complexity
    ... a semicolon is an optional *statement* delimiter. ... EXEC sp_password NULL, 'new;password', 'DevLogin' ... the value isn't properly enclosed in single quotes: ... SQL Server MVP ...
    (microsoft.public.sqlserver.security)
  • Re: Windows 2000 and XP and exec and double quotes
    ... "cmd /c echo" just outputs it's commandline, so it's not very typical, ... mode of operation is not to try to escape the [exec] parameters. ... quotes and escaping quotes in parameters with backslashes is a method ...
    (comp.lang.tcl)