Jump to content

Special char. "Ø" in .cmd file


Recommended Posts

if exist "%AllUsersProfile%\Start-meny\Programmer\Intel PROSet Wireless\Intel PROSet Wireless.lnk" move /y "%AllUsersProfile%\Start-meny\Programmer\Intel PROSet Wireless\Intel PROSet Wireless.lnk" "%AllUsersProfile%\Start-meny\Programmer\Programmer\Tilbehør\Kommunikasjon"

This reults in: system cannot find the specified path, because the "Ø" character (Norwegian) is not found... How do i fix this path?

Link to comment
Share on other sites


Try This And Save As MoveFile.vbs Or Whatever Name You Need.The Orange Line Can Be Removed ,

You Will Not Get Any Error Messages Without it in there. It Serves Only as The Error Message If The

File Is Not There.

The Green Is In Case The Spaces In The Path Cause A problem remove the ' from the start of the line

And Place A ' before this Fso.MoveFile(Loc1),(Loc2)

Dim Act : Set Act = CreateObject("Wscript.Shell")

Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")

UP = Act.ExpandEnvironmentStrings("%USERPROFILE%")

SD = Act.ExpandEnvironmentStrings("%SystemDrive%")

Loc1 = (UP & "Start-meny\Programmer\Intel PROSet Wireless\Intel PROSet Wireless.lnk")

Loc2 = (UP & "\Start-meny\Programmer\Programmer\Tilbehør\Kommunikasjon")

If Fso.FileExists(Loc1) Then

Fso.MoveFile(Loc1),(Loc2)

'''' To Try If The Spaces Are A Problem

' Fso.MoveFile(Chr(34) & Loc1 & Chr(34)) ,(Chr(34) & Loc2 & Chr(34))

Else

Act.Popup Loc1 & vbCrLf & "Was Not there", 3," Missing File", 0 + 32

End If

Link to comment
Share on other sites

many programs including XP have a lot of problems with diacritics (special chars) ,

especially with them in pathes .

so , i try to dont use them . is the best way .

you can solve now a problem with XP , after that you might solve with winrar...so on.

Link to comment
Share on other sites

Try This

Echo Off && CLS && Mode 55,3 && Color f3 && Title Start MakeCab

Set ø=o

Echo && Echo Tilbeh%ø%r

ping -n 4 127.0.0.1>nul

exit

Is This The Correct Name That You Need

Save As Name.Vbs

MsgBox "Tilbehør"

Also Try The Vbs Script If This Doesnt Work.

Link to comment
Share on other sites

You can run a Vbs From The Cleanup.cmd

I use Vbs to do my clean up

Place this in the cleanup.cmd

Example Inside Of A Cleanup.cmd

start / w Wscript.exe "Name Of The VBS here"

or

start / w "Name Of The VBS here"

What I Use

Edit To Give A Example

echo off && CLS && Mode 55,5 && Color f1 && Title Check For CD

Set Drvs=(C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:)

Goto 004

:004

for %%i in %Drvs% do if exist %%i\SETUP.exe set CDROM=%%i && goto 001

for %%i in %Drvs% do if not exist %%i\SETUP.exe goto 002

:001

CLS && Color F2 && Title Confirm The CD

echo. && echo Confirm The Cd Is %CDROM%\

ping -n 3 127.0.0.1>nul

Goto Work

:002

CLS && Color Fc && Mode 55,3 && Title Missing The Correct CD

Echo. && Echo Missing The Cd && ping -n 3 127.0.0.1>nul

Goto 003

:003

ClS && Mode 50,9 && Color 5e && Title Continue Or Exit

Echo. && Echo %UserName% Would You Like To Quit Or Continue && Echo.

Echo Yes To Continue && Echo. && Echo No To Exit && Echo.

SET Choice=

SET /P Choice=Would You Like To Quit Or Continue :

IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%

IF /I '%Choice%'=='YES' GOTO YES

IF /I '%Choice%'=='NO' GOTO Uquit

IF /I '%Choice%'=="%Choice%" GOTO OPS

:OPS

Echo. && Echo Not A Valid Reply

ping -n 2 127.0.0.1>nul

goto 003

:Uquit

Cls && Color F2 && Mode 62,4 && Title Quiting The Cleanup && Echo. && Echo %UserName% Has Selected To Exit

ping -n 4 127.0.0.1>nul

Goto Quit

:Yes

Cls && Mode 55,5 && Color f2 && Title Continue With Clean Up && Echo. && Echo %UserName% Make Sure This Is The Correct CD!

Echo Preparing To Re Check For The Correct CD

ping -n 4 127.0.0.1>nul

Goto 004

:Work

echo Start work

Ping -3 127.0.0.0.1>nul

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\170 /VE /D "Preparing Final Clean up ..." /f

REG ADD %KEY%\170 /V 1 /D "%CDROM%Apps\SilentUaC.exe" /f

Clean up Templates Thread

SilentUac Download

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...