Search found 13 matches

by Technext
25 Jul 2010 04:56
Forum: DOS Batch Forum
Topic: Long UNC path not working in CMD.EXE on remote machine
Replies: 3
Views: 5257

Re: Long UNC path not working in CMD.EXE on remote machine

I was trying to see whether mapping the UNC path to a drive letter on the same machine (where UNC is pointing to) works. I tried using SUBST command for the same, but to no avail. I do not get any error message after I execute the command but when I check the remote server, I am not able to see the ...
by Technext
23 Jul 2010 05:55
Forum: DOS Batch Forum
Topic: Long UNC path not working in CMD.EXE on remote machine
Replies: 3
Views: 5257

Re: Long UNC path not working in CMD.EXE on remote machine

Thanks for your reply but this is not working. Plink works fine with double forward slashes.

I don't think it's an issue with the slashes.

Regards,
GC
by Technext
21 Jul 2010 14:49
Forum: DOS Batch Forum
Topic: Long UNC path not working in CMD.EXE on remote machine
Replies: 3
Views: 5257

Long UNC path not working in CMD.EXE on remote machine

Hi, I am trying to connect to a remote server using Plink tool. Both my local and remote machines are Windows. On remote server, I have OpenSSH server installed. I am able to run commands on remote machine but there is some problem with long UNC path, which I noticed today. For example, ------------...
by Technext
18 Jul 2010 04:07
Forum: DOS Batch Forum
Topic: Unable to unset Read-only attribute of directory
Replies: 2
Views: 4335

Re: Unable to unset Read-only attribute of directory

Thanks for your reply aGerman. I already kept that check in the script; if the folder already exists, the script deletes it recursively and then creates a new folder with the same name. After few more tests, I too realized that the problem was not with the parent folder attribute. I modified my scri...
by Technext
16 Jul 2010 11:25
Forum: DOS Batch Forum
Topic: Unable to unset Read-only attribute of directory
Replies: 2
Views: 4335

Unable to unset Read-only attribute of directory

Hi, I am facing a problem with directory attribute. I have a script that creates a sub-directory inside a given dir. For example, the script creates directory 'auto' inside G:\root\ The script then tries to MOVE a directory from a given location to G:\root\auto\ The problem is that when it tries to ...
by Technext
15 Jul 2010 10:45
Forum: DOS Batch Forum
Topic: Packaging .exe and batch script in an executable file
Replies: 2
Views: 3933

Packaging .exe and batch script in an executable file

Hi, I have few files [4 executables (.exe) along with a Windows batch script], which I need to package in a single exe. Of these 4 .exe files, 2 have to be transferred to a remote location. This transfer is handled by the Windows batch script. The main file here is the Windows batch file, which will...
by Technext
29 Jun 2010 23:54
Forum: DOS Batch Forum
Topic: Running commands on remote box using Plink
Replies: 1
Views: 3354

Re: Running commands on remote box using Plink

Hi, I have finally been able to run command on remote machine using Plink. The problem was with the syntax. It now works both by passing the command as argument, and by using the ‘–m file’ option provided with Plink. For example, plink -ssh -pw xxx gaurav.chhabra@server cd m I am able to run executa...
by Technext
17 Jun 2010 03:35
Forum: DOS Batch Forum
Topic: Unable to parse variable length string separated by delimite
Replies: 4
Views: 5535

Re: Unable to parse variable length string separated by deli

Thank You for the detailed explanation aGerman! I also got confused when I saw your earlier reply (unedited one). Thanks for the clarification.


Regards,
Technext
by Technext
16 Jun 2010 03:18
Forum: DOS Batch Forum
Topic: Unable to parse variable length string separated by delimite
Replies: 4
Views: 5535

Re: Unable to parse variable length string separated by deli

Thanks a lot aGerman! It was really short & to the point.

I only have one query: Why do we use 'call' in the line below:
>>output.txt call echo.%%line:\=//%%

I know that removing it doesn't work but I don't know the WHY behind it? Can you please guide me?


Thanks again,
Technext
by Technext
15 Jun 2010 10:58
Forum: DOS Batch Forum
Topic: Unable to parse variable length string separated by delimite
Replies: 4
Views: 5535

Unable to parse variable length string separated by delimite

Hi, I have a problem with parsing a string, which consists only of directory path. For ex. My input string is --------------------------------- Abc\Program Files\sample\ --------------------------------- My output should be --------------------------------- Abc//Program Files//sample ---------------...
by Technext
24 May 2010 11:17
Forum: DOS Batch Forum
Topic: Running commands on remote box using Plink
Replies: 1
Views: 3354

Running commands on remote box using Plink

Hi, I am using Plink to access remote server. I want to run few commands on the remote server. Though I am able to connect to the remote machine, I am not able to run any command. The following works: -------------------------------------------------------- plink -ssh -l %user_name% -pw %user_pwd% %...
by Technext
24 May 2010 07:56
Forum: DOS Batch Forum
Topic: 'lcd' (SSH UNIX/Linux) equivalent for Windows (SSH)
Replies: 0
Views: 4928

'lcd' (SSH UNIX/Linux) equivalent for Windows (SSH)

Hi, Between two UNIX/Linux machines, when we have initiated an SSH session, we do 'lcd' for browsing the local dir & 'cd' for browsing the remote dir. I am using SSH for establishing session between two Windows boxes. I wanted to know whether there is any equivalent command in Windows SSH sessio...