Related
Gregor Isack I am trying to convert the current working directory of a .bat script to linux format using wsl wslpath. To show you it works on CMD: However, when I put it in a .bat file and change %cd%to %~dp0, the path is empty: test.batInclude: FOR /F %%i IN
Gregor Isack I am trying to convert the current working directory of a .bat script to linux format using wsl wslpath. To show you it works on CMD: However, when I put it in a .bat file and change %cd%to %~dp0, the path is empty: test.batInclude: FOR /F %%i IN
Gregor Isack I am trying to convert the current working directory of a .bat script to linux format using wsl wslpath. To show you it works on CMD: However, when I put it in a .bat file and change %cd%to %~dp0, the path is empty: test.batInclude: FOR /F %%i IN
Gregor Isack I am trying to convert the current working directory of a .bat script to linux format using wsl wslpath. To show you it works on CMD: However, when I put it in a .bat file and change %cd%to %~dp0, the path is empty: test.batInclude: FOR /F %%i IN
Gregor Isack I am trying to convert the current working directory of a .bat script to linux format using wsl wslpath. To show you it works on CMD: However, when I put it in a .bat file and change %cd%to %~dp0, the path is empty: test.batInclude: FOR /F %%i IN
User 504909 I'm using the Linux Subsystem for Windows 10 (Windows 10 version 1803) I can use the command line: user@laptop:~$ wslpath -w /c/
C:\
but when I try to use user@laptop:~$ wslpath -w ~
wslpath: /home/user: Result not representable
Even if I use: us
username I'm new to shell scripting and trying to do the following, converting a windows path to a linux path and navigating to that location: Input: cdwin "J:\abc\def"Action:cd /usr/abc/def/ So I will change the following: "J:" -> "/usr"
and "\" -> "/"
Here
Hardware 135 I have a Java application that generates output that is stored in a file myfile.txtusing a batch script . Now I want to pass the absolute path of this myfile.txtfile as a command line argument to another Java application. So something like: java -
nimble dave I have a text file with many date entries in the following format : YYYY/MM/DD
How do you convert it to the following format? YYYY-MM-DD
This file contains many date entries, so it should change the date format for all entries... thanks Debenham
nimble dave I have a text file with many date entries in the following format : YYYY/MM/DD
How do you convert it to the following format? YYYY-MM-DD
This file contains many date entries, so it should change the date format for all entries... thanks Debenham
Thomas Being new to linux and scripting, I'm not sure how to convert this to a linux script or even where to start. Essentially, I want to create a script that creates alphabetical folders AZ, symlinks all folders in the directory to the newly created sorted A
Thomas Being new to linux and scripting, I'm not sure how to convert this to a linux script or even where to start. Essentially, I want to create a script that creates alphabetical folders AZ, symlinks all folders in the directory to the newly created sorted A
username Hi all, I have a list of log files and want to convert it to a text file. In my case, I was able to convert a single log file (input: Trace0.log output: output0.txt) using java script commands... start java -jar USB_Trace_Decoder.jar -t Trace.tr -l Tr
username Hi all, I have a list of log files and want to convert it to a text file. In my case, I was able to convert a single log file (input: Trace0.log output: output0.txt) using java script commands... start java -jar USB_Trace_Decoder.jar -t Trace.tr -l Tr
Debenham I'm writing a Windows batch script and I have a parameter or variable that contains a path using a short 8.3 name. The path may represent a file or folder. How to convert 8.3 paths to long name paths? At least I want to be able to simply print out the
Debenham I'm writing a Windows batch script and I have a parameter or variable that contains a path using a short 8.3 name. The path may represent a file or folder. How to convert 8.3 paths to long name paths? At least I want to be able to simply print out the
Debenham I'm writing a Windows batch script and I have a parameter or variable that contains a path using a short 8.3 name. The path may represent a file or folder. How to convert 8.3 paths to long name paths? At least I want to be able to simply print out the
Debenham I'm writing a Windows batch script and I have a parameter or variable that contains a path using a short 8.3 name. The path may represent a file or folder. How to convert 8.3 paths to long name paths? At least I want to be able to simply print out the
Debenham I'm writing a Windows batch script and I have a parameter or variable that contains a path using a short 8.3 name. The path may represent a file or folder. How to convert 8.3 paths to long name paths? At least I want to be able to simply print out the
AMcNall I am trying to use an environmental variable to point to a file, run it through a subroutine and associate it with a variable. I managed it with Windows but I cannot get the syntax working for Linux.. This is what I have: my $config = read_config("$EN
Alex Marshall As the title suggests, does anyone know how to batch convert images between formats (with default settings) in Windows using the gimp-console-[version].exe program? November Better than Gimp or Irfanview is ImageMagick . For example, try: mogrify
Alex Marshall As the title suggests, does anyone know how to batch convert images between formats (with default settings) in Windows using the gimp-console-[version].exe program? November Better than Gimp or Irfanview is ImageMagick . For example, try: mogrify
RPR I'm new to Powershell and we're in the middle of migrating an application that requires us to convert an old legacy batch script to Powershell. Batch scripts are using many old legacy tools such as RCMD, XCOPY and SOON to execute the requirements. Can anyo
RPR I'm new to Powershell and we're in the middle of migrating an application that requires us to convert an old legacy batch script to Powershell. Batch scripts are using many old legacy tools such as RCMD, XCOPY and SOON to execute the requirements. Can anyo
username I'm a software tester and I often need to change my short date format from M/dd/yy to d/M/yy as Australian/New Zealand clients use other date formats. The trouble is to open the clock, click change date and time, click change calendar settings, choose
Kaino I need to convert %y/%m/%d %H:%M:%S(for example 18/04/25 16:04:00) a string to seconds. date -d "18/04/25 16:04:00" "+%s"The result format is invalid but date -d "04/25/2018 16:04:00" "+%s"gives the correct result. Is it possible to specify the format of
Jenny I have many files in *.cand *.hdirectories. I want to convert all these files to Linuxcompatible format. I tried the following script and it works, but nothing converts. And I also need to check if everything was converted successfully. So I filter and c
Jenny I have many files in *.cand *.hdirectories. I want to convert all these files to Linuxcompatible format. I tried the following script and it works, but nothing converts. And I also need to check if everything was converted successfully. So I filter and c
Kiranka I have to convert a lot of files from one format (.DAT) to another (.CSV) using software. The software follows COM (Component Object Model), which provides an in-process interface for scripting using VBS (Visual Basic Scripting) or Iron python. Here's