Error opening script file - location error

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Error opening script file - location error
# 8  
Old 02-12-2010
click start, click run, type in 'cmd', hit enter.

In the DOS prompt:
Code:
cd c:\path\to\dir-containing-file

substituting in your actual directory of course. Then:

Code:
dir /X

and it will show a listing of file names in that directory. The column one from the right contains 8dot3 names, so you can see the 8dot3 name for your file. Then
Code:
cd ..
dir /X

so you can see the 8dot3 name of dir-containing-file. Then
Code:
cd ..
dir /X

again so you can see the 8dot3 name of 'to'.

rinse and repeat until you have the 8dot3 names of your file and everything leading to it. Now you can squash them together into a hideous path like "c:\path_na~1\dir_nam~1\file_na~1" which, while ugly and unreadable, should be accepted by Windows and Windows applications.
# 9  
Old 02-16-2010
Thanks for the patience you've shown so far Corona. I am still struggling. The path is on a different server, so I think that is now presenting me with another problem. The error I get in the CMD screen is "CMD does not support UNS paths as current directories".

I'm getting pretty frustrated at this point. I'm beginning to think I will not be able to do this project and might need a UNIX person to do it.
# 10  
Old 02-17-2010
Quote:
The path is on a different server
Oh.

Remote paths in Windows are "special". I doubt MS commandline FTP supports remote paths even if you get past the space in the name problem.

You can map remote paths into drive letters with the NET USE tool, though:

Code:
NET USE X: \\server\path\to\

my_command < x:\input > x:\output

NET USE X: /DELETE

Once you map it in, you might be able to get the 8.3 name(if such things even apply to network drives). Or if the space is just in the path, perhaps avoid it entirely.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

LibGL error when opening GUI version of MATLAB

Hi all, Today, I have a question regarding a libGL error. Currently, I access linux server by using the terminal application in MAC. However, when I try to use GUI version of MATLAB, I have faced an error message as shown below. libGL error: No matching fbConfigs or visuals found libGL... (1 Reply)
Discussion started by: syg3434
1 Replies

2. AIX

Opening a file in vi editor is giving out of memory error

Below is the error: Out of memory saving lines for undo - try using ed : Please help me how do I open this file. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

3. Solaris

Library error while opening firefox

I have Solaris-10 zone, where I can open firefox in GUI via MobaXterm with root user, but when I try to open it with non root user, it fails with below error $ which firefox /usr/bin/firefox $ firefox ld.so.1: firefox-bin: fatal: relocation error: file... (6 Replies)
Discussion started by: solaris_1977
6 Replies

4. AIX

Error opening device: /dev/fscsi0

Hello, One one of my AIX boxes I'm having the following errror: fcstat fcs0: Port Speed (supported): 4 GBIT Error opening device: /dev/fscsi0 errno: 0000003d Has anyone encountered similar errors? Thank you! (1 Reply)
Discussion started by: aixn00b
1 Replies

5. Solaris

Error opening PAM libraries : solaris 10 on vmware workstation

Hi Admins, I am facing an issue with Solaris 10 sitting on vmware workstation... When I start it, it gives me an error : "Error opening PAM libraries, contact system administrator" Also I can reach it via putty, but none of the id/passwd working. I did revert pam.conf. But still no... (2 Replies)
Discussion started by: snchaudhari2
2 Replies

6. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

7. Programming

Error in opening a file C++

Hi, I have written a function which will open the file with the input name provided.Input name is in string format so while opening I am converting it using c_str().detail code below Plz let me know what is the wrong in code. 1 #include<iostream> 2 #include<fstream> 3 ... (4 Replies)
Discussion started by: forstudy3
4 Replies

8. Windows & DOS: Issues & Discussions

error opening website

hi I have unusual problem you might say. I can't open microsoft.com , I've checked file hosts located somewhere in windows/system32/drivers .. and its not blocked from there, what else could cause this problem, I need to download microsoft visual studio and I can't cause I can't open the website,... (1 Reply)
Discussion started by: c0mrade
1 Replies

9. Programming

Error found while opening any pdf file from IE 6

Hello All, My application is followed J2ee architecture. It contains Java and jsp codes. This application generates some reports in pdf format. I am using Weblogic 10.3 and jdk 6. While I want to open the pdf in IE 6 with service pack 2 , the pdf not showing properly. It comes in byte code.... (3 Replies)
Discussion started by: priyankak
3 Replies

10. Shell Programming and Scripting

error while opening files in a directory

I tried opening the files in a directory and print thier names. But it was thowing the error "unable to open directorty at t5.pl line 2." Can u plz correct this error in below mentioned code. #!/data/scoredev/perl opendir(HOMEDIR,"c:\vin") || die("unable to open directorty");... (3 Replies)
Discussion started by: vinay123
3 Replies
Login or Register to Ask a Question